SlidingDrawer控件的使用
1 <SlidingDrawer 2 android:layout_width="match_parent" 3 android:layout_height="match_parent" 4 android:content="@+id/lv_traffic_manager_content" 5 android:handle="@+id/handle" 6 android:orientation="vertical" > 7 8 <!-- ImageView 把手的id必须和SlindingDrawer里面的handle的 id一致 --> 9 10 <ImageView 11 android:id="@id/handle" 12 android:layout_width="30dp" 13 android:layout_height="30dp" 14 android:src="@drawable/notification" /> 15 <!-- ListView的id必须与SlidingDrawer里面的content的id一致 --> 16 17 <ListView 18 android:id="@id/lv_traffic_manager_content" 19 android:layout_width="match_parent" 20 android:layout_height="wrap_content" /> 21 </SlidingDrawer>