Skip to content

Commit fd607f9

Browse files
kasnderclaude
andauthored
Fix activity content overlapping system navigation bar (#558)
Add fitsSystemWindows="true" to all activity root layouts so content is inset to avoid overlapping the Android navigation bar at the bottom. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent a3ef68d commit fd607f9

6 files changed

Lines changed: 10 additions & 4 deletions

File tree

app/src/main/res/layout/activity_blocklists.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
<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"
5-
android:layout_height="match_parent">
5+
android:layout_height="match_parent"
6+
android:fitsSystemWindows="true">
67

78
<androidx.recyclerview.widget.RecyclerView
89
android:id="@+id/list"

app/src/main/res/layout/activity_details.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
xmlns:tools="http://schemas.android.com/tools"
55
android:layout_width="match_parent"
66
android:layout_height="match_parent"
7+
android:fitsSystemWindows="true"
78
tools:context="net.kollnig.missioncontrol.DetailsActivity">
89

910
<com.google.android.material.appbar.AppBarLayout

app/src/main/res/layout/activity_insights.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
xmlns:tools="http://schemas.android.com/tools"
55
android:layout_width="match_parent"
66
android:layout_height="match_parent"
7+
android:fitsSystemWindows="true"
78
android:background="?android:attr/colorBackground">
89

910
<ScrollView

app/src/main/res/layout/activity_onboarding.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
<androidx.constraintlayout.widget.ConstraintLayout 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"
5-
android:layout_height="match_parent">
5+
android:layout_height="match_parent"
6+
android:fitsSystemWindows="true">
67

78
<androidx.viewpager2.widget.ViewPager2
89
android:id="@+id/viewPager"

app/src/main/res/layout/activity_settings.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
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"
5-
android:layout_height="match_parent">
5+
android:layout_height="match_parent"
6+
android:fitsSystemWindows="true">
67

78
<com.google.android.material.appbar.AppBarLayout
89
android:id="@+id/appbar"

app/src/main/res/layout/activity_timeline.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
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"
5-
android:layout_height="match_parent">
5+
android:layout_height="match_parent"
6+
android:fitsSystemWindows="true">
67

78
<com.google.android.material.appbar.AppBarLayout
89
android:id="@+id/appbar"

0 commit comments

Comments
 (0)