Domanda

As topic. Does any one know how to create that snap-settings-view the pulse app uses to its left?

I.e. When you swipe your finger from the left edge, the settings start to show from behind. See the left part of the image below. After a certain amount of movement, the settings menu snaps almost all the way to the right, but still shows the underlying view.

pulse app settings view

Any help is much appreciated

Regards

È stato utile?

Soluzione

You have two options:

  • you can either do yourself with two fragments (one in front and one behind) and some touch even listener translating the drawer to open and close.

  • or use a library that is probably doing the same thing I've described. Something like this one: http://www.androidviews.net/2012/11/sliding-menu/

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top