drawer_list_item.xml 1.0 KB

1234567891011121314151617181920212223242526272829
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="wrap_content"
  5. android:padding="5dp"
  6. android:baselineAligned="false">
  7. <ImageView
  8. android:id="@+id/drawer_listitem_icon"
  9. android:layout_width="35dp"
  10. android:layout_height="35dp"
  11. android:layout_marginLeft="16dp"
  12. android:src="@drawable/ic_launcher"
  13. android:layout_gravity="center_vertical">
  14. </ImageView>
  15. <TextView
  16. android:id="@+id/drawer_listitem_text"
  17. android:layout_width="match_parent"
  18. android:layout_height="wrap_content"
  19. android:textAppearance="?android:attr/textAppearanceListItemSmall"
  20. android:gravity="center_vertical"
  21. android:paddingLeft="16dp"
  22. android:paddingRight="16dp"
  23. android:textColor="?android:attr/colorForeground"
  24. android:minHeight="?android:attr/listPreferredItemHeightSmall"/>
  25. </LinearLayout>