aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/src
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2020-03-09 10:32:03 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2020-03-09 10:32:03 +0530
commit0db2578ca022205309f75f9afe8d3ce97f4b8308 (patch)
tree7cd1cab9f2284662a218ada8c45b55840aa4581e /app/src
parentAdd coordinatorlayout dependency and sort (diff)
downloadwireguard-android-0db2578ca022205309f75f9afe8d3ce97f4b8308.tar.xz
wireguard-android-0db2578ca022205309f75f9afe8d3ce97f4b8308.zip
Switch to CoordinatorLayout for activity container
Snackbars use it to infer the right margins Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/res/layout/main_activity.xml7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/src/main/res/layout/main_activity.xml b/app/src/main/res/layout/main_activity.xml
index 497aaac3..cf892e45 100644
--- a/app/src/main/res/layout/main_activity.xml
+++ b/app/src/main/res/layout/main_activity.xml
@@ -1,10 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
-<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/master_detail_wrapper"
android:layout_width="match_parent"
android:layout_height="match_parent"
- tools:context=".activity.MainActivity">
+ tools:context=".activity.MainActivity"
+ android:fitsSystemWindows="true">
<androidx.fragment.app.FragmentContainerView
android:id="@+id/detail_container"
@@ -12,4 +13,4 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:tag="LIST"/>
-</FrameLayout>
+</androidx.coordinatorlayout.widget.CoordinatorLayout>