main_activity_toolbar.xml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <eu.kanade.tachiyomi.widget.ElevationAppBarLayout 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/appbar"
  6. android:layout_width="match_parent"
  7. android:layout_height="wrap_content"
  8. android:fitsSystemWindows="true">
  9. <com.google.android.material.appbar.MaterialToolbar
  10. android:id="@+id/toolbar"
  11. android:layout_width="match_parent"
  12. android:layout_height="?attr/actionBarSize"
  13. android:background="?attr/colorPrimary"
  14. android:theme="?attr/actionBarTheme"
  15. app:layout_scrollFlags="scroll|enterAlways" />
  16. <com.google.android.material.tabs.TabLayout
  17. android:id="@+id/tabs"
  18. style="@style/Theme.Widget.Tabs"
  19. android:layout_width="match_parent"
  20. android:layout_height="wrap_content" />
  21. <FrameLayout
  22. android:id="@+id/downloaded_only"
  23. android:layout_width="match_parent"
  24. android:layout_height="wrap_content"
  25. android:background="@color/green"
  26. android:visibility="gone"
  27. tools:visibility="visible">
  28. <TextView
  29. android:layout_width="wrap_content"
  30. android:layout_height="wrap_content"
  31. android:layout_gravity="center"
  32. android:padding="4dp"
  33. android:text="@string/label_downloaded_only"
  34. android:textColor="@color/md_white_1000" />
  35. </FrameLayout>
  36. <FrameLayout
  37. android:id="@+id/incognito_mode"
  38. android:layout_width="match_parent"
  39. android:layout_height="wrap_content"
  40. android:background="@color/md_grey_800"
  41. android:visibility="gone"
  42. tools:visibility="visible">
  43. <TextView
  44. android:layout_width="wrap_content"
  45. android:layout_height="wrap_content"
  46. android:layout_gravity="center"
  47. android:padding="4dp"
  48. android:text="@string/pref_incognito_mode"
  49. android:textColor="@color/md_white_1000" />
  50. </FrameLayout>
  51. </eu.kanade.tachiyomi.widget.ElevationAppBarLayout>