Main purpose: I have a listview display on screen, and want to have a SlidingDrawer on the bottom of it.
I m实际对SlidingDrawer至ggle持“手法”的看法,以显示/ide化推器。
I want my bar to show by sliding in and "shrink" the listview layout. And when it hides to make the listview layout return to its original view.
现在,我有一份名单布局,该名单已经确定,并且拥有一个透明的持有人,供提人展示或藏匿。
谁能帮助我看不到这一点?
活动xml:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/Container"
android:id="@+id/layout"
android:orientation="vertical" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1" >
<ListView
android:id="@+id/listview"
style="@style/Widget.ListView" />
</LinearLayout>
<include
layout="@layout/delete_bar" />
</LinearLayout>
删除
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/MarginTopBottom"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="bottom"
android:orientation="vertical"
android:padding="10dp" >
<my.WrappingSlidingDrawer
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:content="@+id/content"
android:handle="@+id/handle" >
<LinearLayout
android:id="@+id/content"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<Button
style="@style/Widget.Button.Wrap"
android:id="@+id/btn_DeleteBar_delete"
android:layout_weight="1"
android:onClick="onClick"
android:text="@string/w_Delete" />
<Button
style="@style/Widget.Button.Wrap"
android:id="@+id/btn_DeleteBar_cancel"
android:layout_weight="1"
android:onClick="onClick"
android:text="@string/w_Cancel" />
</LinearLayout>
<Button
android:id="@+id/handle"
android:layout_width="0dp"
android:layout_height="0dp"
android:visibility="gone" />
</my.WrappingSlidingDrawer>
</LinearLayout>