Boy
Boy

Reputation: 7497

move fragment(?) by swiping and show underlying fragment

Small question, but I think it is an interresting one as I haven't found the answer yet:

what is being used in the Youtube app to be able to swipe the fragment(?) to the right and showing the options behind it. You can do it on the main page and then your personal settings are being displayed.

Anyone have an idea how this is done? I saw it in one other (none-google) app too...

Upvotes: 0

Views: 1011

Answers (1)

Mike
Mike

Reputation: 819

To get similar effect in app you can use ViewPager.

Some information and code examples: http://android-developers.blogspot.com/2011/08/horizontal-view-swiping-with-viewpager.html

Upvotes: 1

Related Questions