2

I want to include a ListView in my Android (2.2) application similar to the notification list that is coming from the top. Here I want it from bottom. The list should show always the top part and when slided up enlarge to 80% of the screen. When slided down, it should go back in its original size.

I tried several alternatives which did not work:

  • Tweed animations always enlarge the part that is visible, not the real content
  • Manual slide up in steps with an animation loop with onAnimationRepeat as it each time has to calculate the full layout after resizing, each step is slow and so the moving is quite bad
  • Layout animations seem not to be a solution as the view is always visible and so it can not be animated during showing up.

Thanks for your help.

Christian
  • 4,596
  • 1
  • 26
  • 33

1 Answers1

2

Look at the Android Sliding Drawer:

It will slide from the bottom, and you can place a ListView inside it.

It should look something like this:

enter image description here

Here is a tutorial:

Ahmad
  • 69,608
  • 17
  • 111
  • 137
  • thanks a lot. I was working for days on that. As I wanted to have a part of the list view visible, I changed the handle to a RelativeLayout containing the first list entry and my real handle image as background. I guess this is the best way as I did not find anything for that in the docu for SlidingDrawer – Christian Aug 26 '12 at 12:49
  • actually I found that my above to put the first list entry in the idea was not the best. So I took the solution [here](http://stackoverflow.com/questions/11492311/make-slidingdrawers-contents-part-always-visible) actually struggling a bit with all the modifications - but it worked and is great... – Christian Aug 26 '12 at 21:46