Update: AppBar corner design

This commit is contained in:
machiav3lli 2021-11-15 01:52:11 +01:00
parent f992d6aa35
commit 3ebee7a199
3 changed files with 11 additions and 2 deletions

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="?android:colorBackground" />
<corners
android:topLeftRadius="@dimen/shape_large_corner"
android:topRightRadius="@dimen/shape_large_corner" />
</shape>

View File

@ -2,6 +2,7 @@
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" <androidx.coordinatorlayout.widget.CoordinatorLayout 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"
android:id="@+id/coordinator" android:id="@+id/coordinator"
android:background="?colorSurface"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:elevation="0dp" android:elevation="0dp"
@ -10,6 +11,7 @@
<com.google.android.material.appbar.AppBarLayout <com.google.android.material.appbar.AppBarLayout
android:id="@+id/appbar_layout" android:id="@+id/appbar_layout"
style="?attr/appBarLayoutStyle" style="?attr/appBarLayoutStyle"
android:background="@android:color/transparent"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"> android:layout_height="wrap_content">
@ -37,6 +39,7 @@
android:id="@+id/fragment_content" android:id="@+id/fragment_content"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="?android:attr/colorBackground" android:background="@drawable/background_recycler_bottom"
android:backgroundTint="?android:colorBackground"
app:layout_behavior="@string/appbar_scrolling_view_behavior" /> app:layout_behavior="@string/appbar_scrolling_view_behavior" />
</androidx.coordinatorlayout.widget.CoordinatorLayout> </androidx.coordinatorlayout.widget.CoordinatorLayout>

View File

@ -95,7 +95,6 @@
</style> </style>
<style name="Theme.AppBarLayout" parent="Widget.Material3.AppBarLayout"> <style name="Theme.AppBarLayout" parent="Widget.Material3.AppBarLayout">
<item name="android:background">@drawable/bottom_corner</item>
<item name="android:backgroundTint">?attr/colorSurface</item> <item name="android:backgroundTint">?attr/colorSurface</item>
<item name="android:fitsSystemWindows">true</item> <item name="android:fitsSystemWindows">true</item>
</style> </style>