chapter_download_view.xml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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="24dp"
  6. android:layout_height="24dp"
  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. app:srcCompat="@drawable/border_circle"
  13. app:tint="@color/material_on_surface_emphasis_medium"
  14. tools:ignore="ContentDescription" />
  15. <ImageView
  16. android:id="@+id/download_icon"
  17. android:layout_width="match_parent"
  18. android:layout_height="match_parent"
  19. android:padding="4dp"
  20. app:srcCompat="@drawable/ic_arrow_downward_24dp"
  21. app:tint="@color/material_on_surface_emphasis_medium"
  22. tools:ignore="ContentDescription" />
  23. <com.google.android.material.progressindicator.CircularProgressIndicator
  24. android:id="@+id/download_progress"
  25. android:layout_width="match_parent"
  26. android:layout_height="match_parent"
  27. android:indeterminate="true"
  28. android:padding="0dp"
  29. android:visibility="gone"
  30. app:indicatorColor="@color/material_on_surface_emphasis_medium"
  31. app:indicatorInset="0dp"
  32. app:indicatorSize="24dp"
  33. app:trackThickness="2dp" />
  34. <ImageView
  35. android:id="@+id/downloaded_icon"
  36. android:layout_width="match_parent"
  37. android:layout_height="match_parent"
  38. app:srcCompat="@drawable/ic_check_circle_24dp"
  39. app:tint="@color/material_on_surface_emphasis_medium"
  40. tools:ignore="ContentDescription" />
  41. <!-- chapter_error -->
  42. <!-- chapter_queued-->
  43. </FrameLayout>