Skip to content

Commit

Permalink
Issue #206: Fix AppBarLayout insets.
Browse files Browse the repository at this point in the history
We're hitting this behavior change when targeting Android 15: https://developer.android.com/about/versions/15/behavior-changes-15#not-edge-to-edge

The documentation says:
> you need to add android:fitsSystemWindows="true" if using AppBarLayout.
  • Loading branch information
caarmen committed Oct 26, 2024
1 parent d4a4d77 commit 811ae53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
android:id="@+id/app_bar_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fitsSystemWindows="true"
android:theme="@style/AppTheme.AppBarOverlay">

<androidx.appcompat.widget.Toolbar
Expand Down

0 comments on commit 811ae53

Please sign in to comment.