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

StackOverflow https://stackoverflow.com/questions/18781984

  •  28-06-2022
  •  | 
  •  

Pregunta

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?

¿Fue útil?

Solución

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

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

Otros consejos

You use showcase to notify the user about something available to be pulled out. Which will make your app looks more professional.

https://github.com/Espiandev/ShowcaseView

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top