commit | 0997dd93a1f8dc6c81f2bebcde713723a8be3058 | [log] [tgz] |
---|---|---|
author | Handa Wang <handaw@google.com> | Mon Oct 28 05:58:11 2024 +0000 |
committer | Handa Wang <handaw@google.com> | Mon Oct 28 05:58:11 2024 +0000 |
tree | c0dc7b5e5cafd95fb6babc57b91ac485eac48a0c | |
parent | c8d3cb08d1b6c3d189e1dd4360101261e195fc29 [diff] |
[Thread] Fix the overlap of top app bar and the system's status bar in demo app Before: https://screenshot.googleplex.com/7NJy8izdNKJoa4u After: https://screenshot.googleplex.com/V4PyKzkQbwBVJw8 Change-Id: I3073541ea02ae9936fef728f04aece1d6389c5e8
diff --git a/thread/demoapp/res/layout/main_activity.xml b/thread/demoapp/res/layout/main_activity.xml index 12072e5..d874db1 100644 --- a/thread/demoapp/res/layout/main_activity.xml +++ b/thread/demoapp/res/layout/main_activity.xml
@@ -21,6 +21,7 @@ android:id="@+id/drawer_layout" android:layout_width="match_parent" android:layout_height="match_parent" + android:fitsSystemWindows="true" tools:context=".MainActivity"> <LinearLayout
diff --git a/thread/demoapp/res/layout/thread_network_settings_fragment.xml b/thread/demoapp/res/layout/thread_network_settings_fragment.xml index ec80447..47ce62a 100644 --- a/thread/demoapp/res/layout/thread_network_settings_fragment.xml +++ b/thread/demoapp/res/layout/thread_network_settings_fragment.xml
@@ -17,8 +17,7 @@ <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" - android:layout_height="match_parent" - android:fitsSystemWindows="true"> + android:layout_height="match_parent"> <LinearLayout xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools"