Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SlidingPaneLayout - how to always show a little part of slide out view (like in hangouts)

I'm using a simple SlidingPaneLayout and what I want is following:

I want, that a little bit of the slide out view is always visible, so that the user always see's, that there exists something to pull out... Like it is in Hangouts.

Is that somehow possible?

like image 652
prom85 Avatar asked Sep 13 '13 08:09

prom85


People also ask

Which property determines how leftover space in a SlidingPaneLayout is distributed among child views?

Setting the android: property determines how leftover space in a SlidingPaneLayout is distributed among child views. In general, isSlideable will only be true on larger devices, where two layouts are shown side by side.

What is SlidingPaneLayout?

SlidingPaneLayout provides a horizontal, multi-pane layout for use at the top level of a UI. A left (or start) pane is treated as a content list or browser, subordinate to a primary detail view for displaying content. Child views overlap if their combined width exceeds the available width in the SlidingPaneLayout.


1 Answers

You have to set a left margin on the slideable view (top view)

e.g.: android:layout_marginLeft="200dp"

like image 54
vinc3m1 Avatar answered Oct 02 '22 15:10

vinc3m1