Tweak ActionToolbar styling

This commit is contained in:
arkon 2020-04-25 10:49:42 -04:00
parent 134dbd2f1d
commit bbf456a4aa
2 changed files with 33 additions and 31 deletions

View File

@ -1,18 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/common_action_toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:clipToPadding="false"
android:padding="8dp"
android:visibility="gone"
tools:visibility="visible">
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:cardCornerRadius="@dimen/card_radius">
<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/common_action_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_gravity="bottom"
android:background="?attr/colorPrimary"
android:elevation="2dp"
android:background="?attr/colorSurface"
android:theme="?attr/actionBarTheme"
android:visibility="gone"
app:contentInsetEnd="8dp"
app:contentInsetStart="8dp">
@ -23,4 +31,6 @@
</com.google.android.material.appbar.MaterialToolbar>
</androidx.cardview.widget.CardView>
</FrameLayout>

View File

@ -3,16 +3,10 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<androidx.viewpager.widget.ViewPager
android:id="@+id/library_pager"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
android:layout_height="match_parent" />
<eu.kanade.tachiyomi.widget.ActionToolbar
android:id="@+id/action_toolbar"
@ -20,8 +14,6 @@
android:layout_height="wrap_content"
android:layout_gravity="bottom" />
</LinearLayout>
<eu.kanade.tachiyomi.widget.EmptyView
android:id="@+id/empty_view"
android:layout_width="wrap_content"