Skip to content

Commit

Permalink
Add fitsSystemWindows for edge-to-edge support
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaier committed Jan 21, 2025
1 parent 2a3d96b commit 569c7d4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions ui/src/main/res/layout/snabble_activity_checkout.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
android:id="@+id/root"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
android:orientation="vertical">

<!-- Workaround for alignment bug in MaterialToolbar when setting padding -->
Expand Down
5 changes: 3 additions & 2 deletions ui/src/main/res/layout/snabble_activity_simple_fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/content"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:fitsSystemWindows="true">

</FrameLayout>
</FrameLayout>
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/root"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:fitsSystemWindows="true">

<com.google.android.material.appbar.AppBarLayout
android:id="@+id/app_bar_layout"
Expand Down

0 comments on commit 569c7d4

Please sign in to comment.