0

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.

4

1 に答える 1

4

SlidingDrawer#onMeasure有効にするwrap_contentためのオーバーライドに関するこの回答SlidingDrawerは、勝者のようです。

クラスのonMeasure()メソッドは、 SlidingDrawer基本的にレイアウト モードを にオーバーライドします 。fill_parentこれが機能しない理由 layout_height="wrap_content"です。

編集- または、のようなもので高さを正確に設定できますlayout_height="200dp"

あなたの他の質問はすでに否定的に答えられています。

于 2011-03-11T22:02:17.553 に答える