SlidingMenu icon indicating copy to clipboard operation
SlidingMenu copied to clipboard

SlidingMenu Peek Margin enhancement

Open McPo opened this issue 13 years ago • 12 comments

Provide the ability to offset the top layout, so has to provide a window to the bottom view. As oppose to completely covering the views all the time.

This is useful on tablets when using the XML version as oppose to the Root Activity version. A List including text and icon could be collapse to show only the icons.

https://androiduiux.files.wordpress.com/2012/06/iconified_side_navigation.png

http://androiduiux.files.wordpress.com/2012/07/create-curiosity.png

McPo avatar Sep 04 '12 20:09 McPo

Shouldn't the content (above portion) of the SlidingMenu be resized to fit its new view port? i.e. there should be some padding on the right? I see that the example screenshots have not done this

jfeinstein10 avatar Sep 04 '12 21:09 jfeinstein10

Yes it should. Sorry about that, I just grabbed the first screenshots I could from the web . (They arnt mine) the menu should be behind the content. And the content (top view ) should move all they way to the right, with a bit of padding Like the latest Google+ app. The menu (bottom view should be static)

Thanks for pointing that out.

McPo avatar Sep 04 '12 22:09 McPo

Okay cool, that's what I thought; thanks for clearing it up. Another question: do you think the menu should be interactive? or that it should open up when you press it? I'm torn on this one

jfeinstein10 avatar Sep 04 '12 22:09 jfeinstein10

I am not sure if understand the question. I would expect the menu to be fully opened. I can then drag the content over the menu text. I could then drag the content away from the menu to expose the text again. The menu should still have focused (be interactive) when closed and opened, to allow for scrolling and button selection.

This allows the user to learn what each icon represents by examining the text. When the user becomes comfortable with the menu it will be possible to leave the menu collapsed, while navigating, improving space constraints and speed (one less slide/button hit to open the menu)

Thanks

McPo avatar Sep 04 '12 22:09 McPo

I understand the dilemma now.

I would suggest working towards an interactive model , at the start. It has much more use functionality wise.

The other interaction is only good for showing that there is a menu behind it.

I do believe it would be an excellent idea to eventually allow both interactions as they serve different purposes. One for navigation the other for indication.

McPo avatar Sep 04 '12 22:09 McPo

I'm also very interested in this feature (see Issue 153). I'd suggest that the menu is working/clickable in both styles (collapsed and opened), because otherwise I see no reason to show it anyway. The above content fills the screen to its right/left edge. So wenn the screen has a width of 800dp and the collapsed menu has a peek width of 100dp, the above content should be 700dp. As soon as the menu gets fully opened the above content slides away like it does now. I think this is the same behavior as McPo proposed, isn't it?

muetzenflo avatar Dec 04 '12 09:12 muetzenflo

Hi there!

Are there any news on this feature? Really looking forward to use this peek margin!

Thanks so far, flo

muetzenflo avatar Jan 09 '13 14:01 muetzenflo

Hi! Anyone with a solution for this? i'm trying modifying CustomViewAbove class, but i can't get this feature...Thanks

jzafrilla avatar Sep 04 '13 13:09 jzafrilla

How do I accomplice this effect? Could anybody give me some pointers.

mjsibbald avatar Mar 16 '16 13:03 mjsibbald

come on 加油!although I don't know, but I do gain something about slidemenu ☺️

Tadelaide avatar Mar 16 '16 13:03 Tadelaide

Not sure what you are saying here.

mjsibbald avatar Mar 16 '16 13:03 mjsibbald

This library should be deprecated. Google has provided this functionality within a support library. More info here http://developer.android.com/training/implementing-navigation/nav-drawer.html

McPo avatar Mar 16 '16 15:03 McPo