md_simplelist_item.xml 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:orientation="horizontal"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:paddingLeft="@dimen/md_dialog_frame_margin"
  8. android:paddingStart="@dimen/md_dialog_frame_margin"
  9. android:paddingRight="@dimen/md_dialog_frame_margin"
  10. android:paddingEnd="@dimen/md_dialog_frame_margin"
  11. android:paddingTop="@dimen/md_simplelistitem_padding_top"
  12. android:paddingBottom="@dimen/md_simplelistitem_padding_top"
  13. android:gravity="start|center_vertical"
  14. android:minHeight="@dimen/md_listitem_height">
  15. <TextView
  16. android:id="@android:id/title"
  17. android:layout_width="wrap_content"
  18. android:layout_height="wrap_content"
  19. android:textSize="@dimen/md_content_textsize"
  20. tools:text="Title" />
  21. <ImageView
  22. android:id="@android:id/icon"
  23. android:layout_width="@dimen/md_simplelist_icon"
  24. android:layout_height="@dimen/md_simplelist_icon"
  25. tools:background="#f5f5f5"
  26. android:layout_marginLeft="@dimen/md_simplelist_icon_margin"
  27. android:layout_marginStart="@dimen/md_simplelist_icon_margin"
  28. android:scaleType="fitXY"
  29. tools:ignore="ContentDescription" />
  30. </LinearLayout>