mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-19 02:49:18 +01:00
MainActivity: Top bar status indicator adjustments (#7329)
* Move to inside app bar for tablet ui layout so it can be hidden with the app bar at once * Remove the redundant parent view * Add text appearance style
This commit is contained in:
parent
28e7009b49
commit
4c3af7bf36
@ -26,49 +26,40 @@
|
|||||||
android:layout_height="?attr/actionBarSize"
|
android:layout_height="?attr/actionBarSize"
|
||||||
android:theme="?attr/actionBarTheme" />
|
android:theme="?attr/actionBarTheme" />
|
||||||
|
|
||||||
</com.google.android.material.appbar.TachiyomiAppBarLayout>
|
<com.google.android.material.tabs.TabLayout
|
||||||
|
android:id="@+id/tabs"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content" />
|
||||||
|
|
||||||
<FrameLayout
|
<TextView
|
||||||
android:id="@+id/downloaded_only"
|
android:id="@+id/downloaded_only"
|
||||||
android:layout_width="0dp"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?attr/colorTertiary"
|
android:background="?attr/colorTertiary"
|
||||||
android:visibility="gone"
|
android:gravity="center"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toEndOf="@id/side_nav"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/appbar"
|
|
||||||
tools:visibility="visible">
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_gravity="center"
|
|
||||||
android:padding="4dp"
|
android:padding="4dp"
|
||||||
android:text="@string/label_downloaded_only"
|
android:text="@string/label_downloaded_only"
|
||||||
android:textColor="?attr/colorOnTertiary" />
|
android:textAlignment="center"
|
||||||
|
android:textAppearance="?attr/textAppearanceLabelMedium"
|
||||||
</FrameLayout>
|
android:textColor="?attr/colorOnTertiary"
|
||||||
|
|
||||||
<FrameLayout
|
|
||||||
android:id="@+id/incognito_mode"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:background="?attr/colorPrimary"
|
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
tools:visibility="visible" />
|
||||||
app:layout_constraintStart_toEndOf="@id/side_nav"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/downloaded_only"
|
|
||||||
tools:visibility="visible">
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:id="@+id/incognito_mode"
|
||||||
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
android:background="?attr/colorPrimary"
|
||||||
|
android:gravity="center"
|
||||||
android:padding="4dp"
|
android:padding="4dp"
|
||||||
android:text="@string/pref_incognito_mode"
|
android:text="@string/pref_incognito_mode"
|
||||||
android:textColor="?attr/colorOnPrimary" />
|
android:textAlignment="center"
|
||||||
|
android:textAppearance="?attr/textAppearanceLabelMedium"
|
||||||
|
android:textColor="?attr/colorOnPrimary"
|
||||||
|
android:visibility="gone"
|
||||||
|
tools:visibility="visible" />
|
||||||
|
|
||||||
</FrameLayout>
|
</com.google.android.material.appbar.TachiyomiAppBarLayout>
|
||||||
|
|
||||||
<com.google.android.material.navigationrail.NavigationRailView
|
<com.google.android.material.navigationrail.NavigationRailView
|
||||||
android:id="@+id/side_nav"
|
android:id="@+id/side_nav"
|
||||||
@ -79,14 +70,6 @@
|
|||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:menu="@menu/main_nav" />
|
app:menu="@menu/main_nav" />
|
||||||
|
|
||||||
<com.google.android.material.tabs.TabLayout
|
|
||||||
android:id="@+id/tabs"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toEndOf="@+id/side_nav"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/incognito_mode" />
|
|
||||||
|
|
||||||
<eu.kanade.tachiyomi.widget.TachiyomiChangeHandlerFrameLayout
|
<eu.kanade.tachiyomi.widget.TachiyomiChangeHandlerFrameLayout
|
||||||
android:id="@+id/controller_container"
|
android:id="@+id/controller_container"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
@ -94,7 +77,7 @@
|
|||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toEndOf="@+id/side_nav"
|
app:layout_constraintStart_toEndOf="@+id/side_nav"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/tabs" />
|
app:layout_constraintTop_toBottomOf="@+id/appbar" />
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
|
@ -32,41 +32,33 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:visibility="gone" />
|
android:visibility="gone" />
|
||||||
|
|
||||||
<FrameLayout
|
<TextView
|
||||||
android:id="@+id/downloaded_only"
|
android:id="@+id/downloaded_only"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?attr/colorTertiary"
|
android:background="?attr/colorTertiary"
|
||||||
android:visibility="gone"
|
android:gravity="center"
|
||||||
tools:visibility="visible">
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_gravity="center"
|
|
||||||
android:padding="4dp"
|
android:padding="4dp"
|
||||||
android:text="@string/label_downloaded_only"
|
android:text="@string/label_downloaded_only"
|
||||||
android:textColor="?attr/colorOnTertiary" />
|
android:textAlignment="center"
|
||||||
|
android:textAppearance="?attr/textAppearanceLabelMedium"
|
||||||
|
android:textColor="?attr/colorOnTertiary"
|
||||||
|
android:visibility="gone"
|
||||||
|
tools:visibility="visible" />
|
||||||
|
|
||||||
</FrameLayout>
|
<TextView
|
||||||
|
|
||||||
<FrameLayout
|
|
||||||
android:id="@+id/incognito_mode"
|
android:id="@+id/incognito_mode"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?attr/colorPrimary"
|
android:background="?attr/colorPrimary"
|
||||||
android:visibility="gone"
|
android:gravity="center"
|
||||||
tools:visibility="visible">
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_gravity="center"
|
|
||||||
android:padding="4dp"
|
android:padding="4dp"
|
||||||
android:text="@string/pref_incognito_mode"
|
android:text="@string/pref_incognito_mode"
|
||||||
android:textColor="?attr/colorOnPrimary" />
|
android:textAlignment="center"
|
||||||
|
android:textAppearance="?attr/textAppearanceLabelMedium"
|
||||||
</FrameLayout>
|
android:textColor="?attr/colorOnPrimary"
|
||||||
|
android:visibility="gone"
|
||||||
|
tools:visibility="visible" />
|
||||||
|
|
||||||
</com.google.android.material.appbar.TachiyomiAppBarLayout>
|
</com.google.android.material.appbar.TachiyomiAppBarLayout>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user