main_activity.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <eu.kanade.tachiyomi.widget.TachiyomiCoordinatorLayout 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/root_coordinator"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. android:orientation="vertical">
  9. <androidx.constraintlayout.widget.ConstraintLayout
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent">
  12. <com.google.android.material.appbar.TachiyomiAppBarLayout
  13. android:id="@+id/appbar"
  14. android:layout_width="0dp"
  15. android:layout_height="wrap_content"
  16. android:fitsSystemWindows="true"
  17. app:layout_constraintEnd_toEndOf="parent"
  18. app:layout_constraintStart_toEndOf="@id/side_nav"
  19. app:layout_constraintTop_toTopOf="parent">
  20. <com.google.android.material.appbar.MaterialToolbar
  21. android:id="@+id/toolbar"
  22. android:layout_width="match_parent"
  23. android:layout_height="?attr/actionBarSize"
  24. android:theme="?attr/actionBarTheme" />
  25. </com.google.android.material.appbar.TachiyomiAppBarLayout>
  26. <FrameLayout
  27. android:id="@+id/downloaded_only"
  28. android:layout_width="0dp"
  29. android:layout_height="wrap_content"
  30. android:background="?attr/colorTertiary"
  31. android:visibility="gone"
  32. app:layout_constraintEnd_toEndOf="parent"
  33. app:layout_constraintStart_toEndOf="@id/side_nav"
  34. app:layout_constraintTop_toBottomOf="@+id/appbar"
  35. tools:visibility="visible">
  36. <TextView
  37. android:layout_width="wrap_content"
  38. android:layout_height="wrap_content"
  39. android:layout_gravity="center"
  40. android:padding="4dp"
  41. android:text="@string/label_downloaded_only"
  42. android:textColor="?attr/colorOnTertiary" />
  43. </FrameLayout>
  44. <FrameLayout
  45. android:id="@+id/incognito_mode"
  46. android:layout_width="0dp"
  47. android:layout_height="wrap_content"
  48. android:background="?attr/colorPrimary"
  49. android:visibility="gone"
  50. app:layout_constraintEnd_toEndOf="parent"
  51. app:layout_constraintStart_toEndOf="@id/side_nav"
  52. app:layout_constraintTop_toBottomOf="@+id/downloaded_only"
  53. tools:visibility="visible">
  54. <TextView
  55. android:layout_width="wrap_content"
  56. android:layout_height="wrap_content"
  57. android:layout_gravity="center"
  58. android:padding="4dp"
  59. android:text="@string/pref_incognito_mode"
  60. android:textColor="?attr/colorOnPrimary" />
  61. </FrameLayout>
  62. <com.google.android.material.navigationrail.NavigationRailView
  63. android:id="@+id/side_nav"
  64. android:layout_width="wrap_content"
  65. android:layout_height="match_parent"
  66. android:paddingTop="?attr/actionBarSize"
  67. app:elevation="1dp"
  68. app:layout_constraintStart_toStartOf="parent"
  69. app:menu="@menu/main_nav" />
  70. <com.google.android.material.tabs.TabLayout
  71. android:id="@+id/tabs"
  72. android:layout_width="0dp"
  73. android:layout_height="wrap_content"
  74. app:layout_constraintEnd_toEndOf="parent"
  75. app:layout_constraintStart_toEndOf="@+id/side_nav"
  76. app:layout_constraintTop_toBottomOf="@+id/incognito_mode" />
  77. <eu.kanade.tachiyomi.widget.TachiyomiChangeHandlerFrameLayout
  78. android:id="@+id/controller_container"
  79. android:layout_width="0dp"
  80. android:layout_height="0dp"
  81. app:layout_constraintBottom_toBottomOf="parent"
  82. app:layout_constraintEnd_toEndOf="parent"
  83. app:layout_constraintStart_toEndOf="@+id/side_nav"
  84. app:layout_constraintTop_toBottomOf="@+id/tabs" />
  85. </androidx.constraintlayout.widget.ConstraintLayout>
  86. <eu.kanade.tachiyomi.widget.ActionModeWithToolbar
  87. android:id="@+id/action_toolbar"
  88. android:layout_width="match_parent"
  89. android:layout_height="wrap_content"
  90. android:layout_gravity="bottom" />
  91. <include
  92. android:id="@+id/fab_layout"
  93. layout="@layout/main_activity_fab" />
  94. </eu.kanade.tachiyomi.widget.TachiyomiCoordinatorLayout>