Reputation: 21
I've searched the discussion list (not to mention the interwebs ad nauseum) and I can't seem to find an answer and/or example.
I need to be able to expose part of a ListView on the bottom portion of the screen, and then (like SlidingDrawer) have the rest of the list displayed if the user flings upwards.
SlidingDrawer has the behavior I want, but doesn't seem to have a way of controlling how much it's open or closed (perhaps I'm just missing it).
I've experimented with using Animations to open and close the list. This works (mostly) except then I have to deal with list scrolling issues as animating the view doesn't seem to reset it's scrollable area to it's visible area.
Does anyone have an example of something like described above? Or a pointer to bits and pieces to get me going the right direction again?
Thanks, in advance.
Upvotes: 2
Views: 1314
Reputation: 3882
I modified source code of sliding drawer widget and tested its working fine.If anybody wants just give me your email id. followling attrs.xml will be required in your project were you are going to modified code.
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="SlidingDrawer">
<attr name="handle" format="integer"/>
<attr name="content" format="integer"/>
</declare-styleable>
</resources>
Upvotes: 0
Reputation: 98521
SlidingDrawer does not support this. You can just create your own :)
Upvotes: 1