fragment_manga_chapters.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:orientation="vertical">
  7. <android.support.v4.widget.SwipeRefreshLayout
  8. android:id="@+id/swipe_refresh"
  9. android:layout_width="match_parent"
  10. android:layout_height="match_parent"
  11. android:layout_above="@+id/toolbar_bottom"
  12. android:orientation="vertical">
  13. <android.support.v7.widget.RecyclerView
  14. android:id="@+id/chapter_list"
  15. android:layout_width="match_parent"
  16. android:layout_height="match_parent"
  17. android:layout_marginLeft="16dp"
  18. android:layout_marginRight="16dp"
  19. android:descendantFocusability="blocksDescendants"
  20. tools:listitem="@layout/item_chapter">
  21. </android.support.v7.widget.RecyclerView>
  22. </android.support.v4.widget.SwipeRefreshLayout>
  23. <RelativeLayout
  24. android:id="@+id/toolbar_bottom"
  25. android:layout_width="match_parent"
  26. android:layout_height="?attr/actionBarSize"
  27. android:layout_alignParentBottom="true"
  28. android:background="@color/colorPrimary"
  29. android:elevation="4dp"
  30. android:paddingLeft="12dp"
  31. android:paddingRight="12dp"
  32. android:gravity="top|start"
  33. android:theme="@style/ThemeOverlay.AppTheme.Dark">
  34. <ImageView
  35. android:id="@+id/action_sort"
  36. android:layout_width="wrap_content"
  37. android:layout_height="match_parent"
  38. android:layout_gravity="center"
  39. android:background="?android:selectableItemBackground"
  40. android:title="@string/action_sort_up"
  41. tools:src="@drawable/ic_expand_less_white_36dp"/>
  42. <LinearLayout
  43. android:layout_width="match_parent"
  44. android:layout_height="match_parent"
  45. android:layout_toEndOf="@+id/action_sort"
  46. android:layout_toLeftOf="@+id/action_next_unread"
  47. android:layout_toRightOf="@+id/action_sort"
  48. android:gravity="center_vertical">
  49. <View
  50. android:layout_width="1dp"
  51. android:layout_height="match_parent"
  52. android:layout_margin="10dp"
  53. android:background="@color/white"/>
  54. <CheckBox
  55. android:id="@+id/action_show_unread"
  56. android:layout_width="wrap_content"
  57. android:layout_height="match_parent"
  58. android:layout_weight="1"
  59. android:checkable="true"
  60. android:text="@string/action_show_unread"
  61. android:title="@string/action_show_unread"/>
  62. <CheckBox
  63. android:id="@+id/action_show_downloaded"
  64. android:layout_width="wrap_content"
  65. android:layout_height="match_parent"
  66. android:layout_weight="1"
  67. android:checkable="true"
  68. android:text="@string/action_show_downloaded"
  69. android:title="@string/action_show_downloaded"/>
  70. <View
  71. android:layout_width="1dp"
  72. android:layout_height="match_parent"
  73. android:layout_margin="10dp"
  74. android:background="@color/white"/>
  75. </LinearLayout>
  76. <ImageView
  77. android:id="@+id/action_next_unread"
  78. android:layout_width="wrap_content"
  79. android:layout_height="match_parent"
  80. android:layout_alignParentRight="true"
  81. android:background="?android:selectableItemBackground"
  82. android:src="@drawable/ic_play_arrow_white_36dp"
  83. android:title="@string/action_next_unread"/>
  84. </RelativeLayout>
  85. </RelativeLayout>