diff options
Diffstat (limited to 'app/src/main/res')
| -rw-r--r-- | app/src/main/res/layout/main.xml | 3 | ||||
| -rw-r--r-- | app/src/main/res/layout/settings.xml | 13 |
2 files changed, 16 insertions, 0 deletions
diff --git a/app/src/main/res/layout/main.xml b/app/src/main/res/layout/main.xml index acd4a3c..2e722b0 100644 --- a/app/src/main/res/layout/main.xml +++ b/app/src/main/res/layout/main.xml @@ -1,5 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- Root padding is the base; Ui.padForInsets() adds the system bar and + IME insets to it at runtime (the window is edge-to-edge). --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/root" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" diff --git a/app/src/main/res/layout/settings.xml b/app/src/main/res/layout/settings.xml index 5d4e450..76f706b 100644 --- a/app/src/main/res/layout/settings.xml +++ b/app/src/main/res/layout/settings.xml @@ -1,5 +1,9 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- Title lives in the layout, not in an action bar: the window is + edge-to-edge, so Ui.padForInsets() on this root is what keeps the + content clear of the system bars. --> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/root" android:layout_width="match_parent" android:layout_height="match_parent"> @@ -10,6 +14,15 @@ android:padding="@dimen/space_lg"> <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="@dimen/space_lg" + android:text="@string/settings" + android:textColor="@color/on_surface" + android:textSize="22sp" + android:textStyle="bold"/> + + <TextView style="@style/Note" android:layout_width="match_parent" android:layout_height="wrap_content" |