android SlidingDrawer伸縮摺疊佈局組件

佈局文件中添加,當作普通組件

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>


 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章