You could use behindOffset
, behindWidth
or touchModeAbove
.
If you use it as a view you could do this (in your layout file):
sliding:behindOffset="@dimen/YOUR_OFFSET"
sliding:behindWidth="@dimen/YOUR_WIDTH"
sliding:touchModeAbove="margin"
Further explained
touchModeAbove
- an enum that designates what part of the screen is touchable when the above view is showing. Margin means only the left margin. Fullscreen means the entire screen. Default is margin.
behindOffset
- a dimension representing the number of pixels that you want the above view to show when the behind view is showing. Default is 0.
behindWidth
- a dimension representing the width of the behind view. Default is the width of the screen (equivalent to behindOffset = 0).