chapter_download_view.xml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FrameLayout 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="28dp"
  6. android:layout_height="28dp"
  7. android:background="?selectableItemBackgroundBorderless">
  8. <ImageView
  9. android:id="@+id/download_icon_border"
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent"
  12. android:padding="2dp"
  13. android:scaleType="fitXY"
  14. app:srcCompat="@drawable/border_circle"
  15. app:tint="@color/material_on_surface_emphasis_medium"
  16. tools:ignore="ContentDescription" />
  17. <ImageView
  18. android:id="@+id/download_icon"
  19. android:layout_width="match_parent"
  20. android:layout_height="match_parent"
  21. android:padding="4dp"
  22. android:scaleType="fitXY"
  23. app:srcCompat="@drawable/ic_arrow_downward_24dp"
  24. app:tint="@color/material_on_surface_emphasis_medium"
  25. tools:ignore="ContentDescription" />
  26. <com.google.android.material.progressindicator.CircularProgressIndicator
  27. android:id="@+id/download_progress"
  28. android:layout_width="match_parent"
  29. android:layout_height="match_parent"
  30. android:indeterminate="true"
  31. android:padding="1dp"
  32. android:visibility="gone"
  33. app:indicatorColor="@color/material_on_surface_emphasis_medium"
  34. app:indicatorInset="0dp"
  35. app:indicatorSize="26dp"
  36. app:trackThickness="2dp" />
  37. <ImageView
  38. android:id="@+id/downloaded_icon"
  39. android:layout_width="match_parent"
  40. android:layout_height="match_parent"
  41. android:scaleType="fitXY"
  42. android:visibility="gone"
  43. app:srcCompat="@drawable/ic_check_circle_24dp"
  44. app:tint="@color/material_on_surface_emphasis_medium"
  45. tools:ignore="ContentDescription" />
  46. <ImageView
  47. android:id="@+id/error_icon"
  48. android:layout_width="match_parent"
  49. android:layout_height="match_parent"
  50. android:scaleType="fitXY"
  51. android:visibility="gone"
  52. app:srcCompat="@drawable/ic_error_outline_24dp"
  53. app:tint="?attr/colorError"
  54. tools:ignore="ContentDescription" />
  55. </FrameLayout>