佈局文件中添加,當作普通組件
ImageView相當於抽屜的把手,控制整個組件界面的伸縮
ListView做普通組件處理,即影藏的部分列表
<SlidingDrawer
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:handle="@+id/handle"
android:content="@+id/traffic_app_listview"
android:orientation="vertical">
<ImageView android:id="@id/handle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/sliping_drawer"/>
<ListView android:id="@id/traffic_app_listview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"></ListView>
</SlidingDrawer>