download_header.xml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <com.google.android.material.card.MaterialCardView 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:id="@+id/container"
  6. android:layout_width="match_parent"
  7. android:layout_height="wrap_content"
  8. android:layout_marginTop="8dp"
  9. app:cardBackgroundColor="?android:attr/colorBackground"
  10. app:cardElevation="0dp"
  11. app:cardForegroundColor="@color/draggable_card_foreground">
  12. <LinearLayout
  13. android:layout_width="match_parent"
  14. android:layout_height="wrap_content">
  15. <TextView
  16. android:id="@+id/title"
  17. style="@style/TextAppearance.Tachiyomi.SectionHeader"
  18. android:layout_width="0dp"
  19. android:layout_height="wrap_content"
  20. android:paddingHorizontal="16dp"
  21. android:paddingVertical="8dp"
  22. android:layout_weight="1"
  23. android:layout_gravity="center_vertical"
  24. tools:text="Title" />
  25. <ImageView
  26. android:id="@+id/reorder"
  27. android:layout_width="wrap_content"
  28. android:layout_height="wrap_content"
  29. android:layout_gravity="start"
  30. android:layout_marginEnd="4dp"
  31. android:paddingHorizontal="10dp"
  32. android:paddingVertical="8dp"
  33. android:scaleType="center"
  34. app:srcCompat="@drawable/ic_drag_handle_24dp"
  35. app:tint="?android:attr/textColorHint"
  36. tools:ignore="ContentDescription" />
  37. </LinearLayout>
  38. </com.google.android.material.card.MaterialCardView>