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,26 +1,36 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" 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_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">
<com.google.android.material.appbar.MaterialToolbar <androidx.cardview.widget.CardView
android:id="@+id/common_action_toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize" android:layout_height="wrap_content"
android:layout_gravity="bottom" app:cardCornerRadius="@dimen/card_radius">
android:background="?attr/colorPrimary"
android:elevation="2dp"
android:theme="?attr/actionBarTheme"
android:visibility="gone"
app:contentInsetEnd="8dp"
app:contentInsetStart="8dp">
<androidx.appcompat.widget.ActionMenuView <com.google.android.material.appbar.MaterialToolbar
android:id="@+id/common_action_menu"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" /> android:layout_height="?attr/actionBarSize"
android:layout_gravity="bottom"
android:background="?attr/colorSurface"
android:theme="?attr/actionBarTheme"
app:contentInsetEnd="8dp"
app:contentInsetStart="8dp">
</com.google.android.material.appbar.MaterialToolbar> <androidx.appcompat.widget.ActionMenuView
android:id="@+id/common_action_menu"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</com.google.android.material.appbar.MaterialToolbar>
</androidx.cardview.widget.CardView>
</FrameLayout> </FrameLayout>

View File

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