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

2

7

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?

Inconstant answered 13/9, 2013 at 8:45 Comment(0)
B
11

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

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

Beech answered 23/9, 2013 at 5:48 Comment(2)
that works. Although, i could swaer, i did try that already and it just showed a border but not the view below... But, it works, so thanks a lotInconstant
this works only once, at start. If you close the SlidingPaneLayout it closes entirely !Ambrogino
T
-2

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

Turboelectric answered 13/9, 2013 at 9:5 Comment(4)
I know about this library... Actually, I think, it looks better if a visible pullable area exists... Especially in a bigger app, where not every view has this menu... And I personally like the look of HangoutsInconstant
Umm .. did you try using frame layout and adding an image that looks like a pull on the left of the screen?Turboelectric
Actually, I want that the slide out area is partly visible... I treid using padding, transparent background and similar, but I was not able to get the desired result... a pullable bar on the side is no problem though, but that's not what I want...Inconstant
Could whomever downvoted this answer include a reason why, as StackOverflow asks? I certainly hope people didn't downvote this because of their personal tastes in ascetics—how pathetic!Sherard

© 2022 - 2024 — McMap. All rights reserved.