pref_tracker_item.xml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="?listPreferredItemHeight"
  7. android:orientation="horizontal"
  8. android:paddingHorizontal="16dp"
  9. android:paddingVertical="8dp">
  10. <com.google.android.material.card.MaterialCardView
  11. android:id="@+id/logo_container"
  12. android:layout_width="48dp"
  13. android:layout_height="48dp"
  14. app:cardBackgroundColor="#2E51A2"
  15. app:cardElevation="0dp"
  16. app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.MaterialCardView.Tracker">
  17. <ImageView
  18. android:id="@android:id/icon"
  19. android:layout_width="match_parent"
  20. android:layout_height="match_parent"
  21. android:importantForAccessibility="no"
  22. android:padding="4dp"
  23. tools:src="@drawable/ic_tracker_mal" />
  24. </com.google.android.material.card.MaterialCardView>
  25. <TextView
  26. android:id="@android:id/title"
  27. android:layout_width="0dp"
  28. android:layout_height="wrap_content"
  29. android:layout_weight="1"
  30. android:layout_gravity="center_vertical"
  31. android:ellipsize="end"
  32. android:maxLines="1"
  33. android:paddingHorizontal="16dp"
  34. android:textAppearance="?attr/textAppearanceTitleMedium"
  35. tools:text="MyAnimeList" />
  36. <ImageView
  37. android:id="@+id/checked_icon"
  38. android:layout_width="32dp"
  39. android:layout_height="32dp"
  40. android:layout_gravity="center_vertical"
  41. android:padding="4dp"
  42. android:src="@drawable/ic_done_green_24dp" />
  43. </LinearLayout>