xydev
xydev

Reputation: 3409

Is there a way to implement a top down sliding drawer

In my app there a button , and on pressing it the requirement is that an expandable list view should slide out. but the case is that slidingdrawer only moves from bottom to top..

Upvotes: 2

Views: 5809

Answers (2)

Art
Art

Reputation: 1340

You can try umano's https://github.com/umano/AndroidSlidingUpPanel. Just copy it and see if it fits

Upvotes: 3

spaaarky21
spaaarky21

Reputation: 6858

This was asked in a similar question: Android SlidingDrawer from top?

To summarize, there are basically two solutions:

  1. On Android 3.0+ (API 11), you can set android:rotation on the SlidingDrawer to 180 degree. And since that will also rotate the children, rotate them an additional 180 degree, to return them to their original orientation. However, since SlidingDrawer was also deprecated in Android 4.2 (API 17), this solution is not recommended as anything more than an interim solution.
  2. The better solution is to write you own implementation or use a similar component from a 3rd party widget library. A few library recommendations can be found in the answers for this question: SlidingDrawer deprecated

Upvotes: 2

Related Questions