Possible Duplicate:
Android: can height of SlidingDrawer be set with wrap_content?
Is there a way to change the size of a sliding drawer when it opens ? And is there a way to place it in the top, or in the left, because the default option are bottom for the vertical orientation and right to the horizontal orientation.
This answer about overriding SlidingDrawer#onMeasure
to enable wrap_content
for SlidingDrawer
seems like a winner.
The
onMeasure()
method of theSlidingDrawer
class basically overrides the layout modes tofill_parent
, this is whylayout_height="wrap_content"
is not working.
Edit - Or, you can set the height exactly in with something like layout_height="200dp"
.
Your other question was already answered in the negative.
精彩评论