Behind Offset Sliding Menu

EmretTM

New Member
I'm using jfeinstein10's sliding menu.I have the following xml code:\[code\]<com.slidingmenu.lib.SlidingMenuxmlns:android="http://schemas.android.com/apk/res/android"xmlns:sliding="http://schemas.android.com/apk/res-auto"android:id="@+id/sliding_in"android:layout_width="match_parent"android:layout_height="match_parent"sliding:viewBehind="@layout/activity_main"sliding:viewAbove= "@layout/slidingcontent"sliding:touchModeAbove="fullscreen"sliding:selectorEnabled="true"sliding:behindOffset="@dimen/slidingmenu"/>\[/code\]@dimen I made a new dimension with the value of 100px:\[code\] <dimen name = "slidingmenu">100px</dimen>\[/code\]However when I run the project the sliding menu covers the entire screen.It works if I put the following line in onCreate:\[code\]getSlidingMenu().setBehindOffset(100)\[/code\]How can I specify the entire layout in xml?
 
Back
Top