Skip to content

Commit cfeec39

Browse files
committed
Handle window insets correctly in the activity_billing.xml layout
1 parent ebdff8a commit cfeec39

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed
Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2+
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:app="http://schemas.android.com/apk/res-auto"
44
android:layout_width="match_parent"
55
android:layout_height="match_parent"
6-
android:fitsSystemWindows="true"
7-
android:orientation="vertical">
6+
android:fitsSystemWindows="true">
87

98
<com.google.android.material.appbar.AppBarLayout
109
style="@style/Widget.MaterialComponents.AppBarLayout.PrimarySurface"
@@ -17,15 +16,15 @@
1716
android:id="@+id/toolbar"
1817
style="@style/Widget.MaterialComponents.Toolbar.PrimarySurface"
1918
android:layout_width="match_parent"
20-
android:layout_height="?attr/actionBarSize" />
19+
android:layout_height="wrap_content" />
2120

2221
</com.google.android.material.appbar.AppBarLayout>
2322

2423
<androidx.fragment.app.FragmentContainerView
2524
android:id="@+id/fragmentContainerBilling"
2625
android:name="xyz.aprildown.timer.flavor.google.BillingFragment"
2726
android:layout_width="match_parent"
28-
android:layout_height="0dp"
29-
android:layout_weight="1" />
27+
android:layout_height="match_parent"
28+
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
3029

31-
</LinearLayout>
30+
</androidx.coordinatorlayout.widget.CoordinatorLayout>

0 commit comments

Comments
 (0)