How to implement a vertically sliding fragment / panel like Google music in an Android app?

StackOverflow https://stackoverflow.com/questions/17071395

سؤال

I'm trying to create a sliding panel that slides to collapse / expand vertically and not horizontally.

I've tried Umano's Library but it's kind of buggy for me, because I'm using Fragments, and not Activities.

Any way to implement this with fragments?

Thanks.

هل كانت مفيدة؟

المحلول 2

Well if any one wants to know, i Did used Umano's Library bugs were fixed using the git manager. Works great.

نصائح أخرى

that is called a SlidingDrawer (which is deprecated as of API level 17 BTW) so I would not recommend using it unless you fork it from the SDK as your own

SlidingDrawer Examples:

http://www.coderzheaven.com/2011/12/01/slidingdrawer-in-android-a-simple-example/

http://androiddeveloperspot.blogspot.com/2013/05/slidingdrawer-in-android-example.html

http://w2davids.wordpress.com/android-damn-that-sliding-drawer/

SlidingPaneLayout does this SlidingPaneLayout provides a horizontal, multi-pane layout for use at the top level of a UI. A left (or first) pane is treated as a content list or browser, subordinate to a primary detail view for displaying content.

you can view the sliding pane in the new hangouts app

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top