【发布时间】:2011-03-18 17:01:27
【问题描述】:
我想动态或静态地定义滑动抽屉高度的高度。 下面是我的 xml 布局文件。任何建议将不胜感激。
<?xml version="1.0" encoding="utf-8"?>
<SlidingDrawer android:layout_width="fill_parent"
android:id="@+id/SlidingDrawer" android:handle="@+id/slideHandleButton"
android:content="@+id/contentLayout" android:layout_height="wrap_content">
<ImageView android:layout_width="fill_parent"
android:layout_height="wrap_content" android:id="@+id/slideHandleButton"
android:background="@drawable/icon_movie"></ImageView>
<LinearLayout android:layout_width="fill_parent"
android:id="@+id/contentLayout" android:gravity="center"
android:background="#C0C0C0" android:layout_height="wrap_content">
<Gallery android:id="@+id/gallery" android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
</SlidingDrawer>
</FrameLayout>
【问题讨论】:
标签: java android android-layout android-ui slidingdrawer