我有滑动窗格,向右滑动。
我想减小顶部布局的大小,如下所示
<android.support.v4.widget.SlidingPaneLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/SlidingPanel"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<LinearLayout
android:layout_width="300dp"
android:layout_height="match_parent"
android:layout_gravity="left" >
<ListView
android:id="@+id/MenuList"
android:layout_width="wrap_content"
android:layout_height="match_parent" >
</ListView>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="right"
android:orientation="vertical" >
<ListView
android:id="@+id/listView1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentBottom="true"
android:layout_alignParentTop="true"
android:divider="@null"
android:dividerHeight="0dp" >
</ListView>
</LinearLayout>
</android.support.v4.widget.SlidingPaneLayout>
让我知道在每个菜单上缩小顶部布局的大小