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

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

  •  28-06-2022
  •  | 
  •  

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?

有帮助吗?

解决方案

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

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

其他提示

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top