AndroidSideMenu icon indicating copy to clipboard operation
AndroidSideMenu copied to clipboard

Possible Features

Open PixelCrunch opened this issue 12 years ago • 6 comments

Is it possible to have the menu "slide on top" of the main layout instead of "pushing" the main layout out of the way?

My implementation would be sliding a layout on top of the previous layout so that the previous layout is still visible on the edge.

Also is there a way to listen for when the open or close animation if finished?

Here is a layout example: http://pastebin.com/cKcFDLij

Cheers, your projects are a life saver!

PixelCrunch avatar May 28 '13 17:05 PixelCrunch

I'll think about it. Most likely I will implement this feature, but not too soon (within a month, I suppose). Although, if this is urgent, then you can do it by yourself (this is not too hard and I'll guide you).

To know when slide is completed (with animation or not), you can use this method:

SlideHolder.setOnSlideListener(SlideHolder.OnSlideListener);

You'll receive a boolean (true - menu was opened, false - menu was closed).

dmitry-zaitsev avatar May 28 '13 18:05 dmitry-zaitsev

Thank You,

I will attempt to implement this functionality (and possibly learn a thing or two in the process!).

Your help has been invaluable :+1:

PixelCrunch avatar May 28 '13 18:05 PixelCrunch

Alright, then you better fork this repo :)

Please, mail me directly (my Email is in my profile on GitHub) - I'll get you some advices on where to look and what to change.

dmitry-zaitsev avatar May 28 '13 18:05 dmitry-zaitsev

Nothing in relation to this topic but I think it's not important to open an other one...

It's me or it seems that there is deceleration or step between 0-85% opening and the 15% remaining (also when you close) or it's just a lag ? This phenomenon appears only when you don't let your finger in the screen to slide, when you "throw" the menu to open or close...

stephanetrepier avatar Jul 12 '13 13:07 stephanetrepier

Ok indeed in the SlideAnimation there is DecelerateAnimation ^^ Sorry !

stephanetrepier avatar Jul 12 '13 13:07 stephanetrepier

I am not able to implement the following method in my class: SlideHolder.setOnSlideListener(SlideHolder.OnSlideListener);

Its giving an error in this line, SlideHolder.OnSlideListener. Can anyone suggest me how to implement this. Thanks

headonn avatar Dec 06 '13 07:12 headonn