diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2020-02-23 20:06:41 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2020-02-25 08:57:29 +0530 |
commit | 4267e94dcd4e2fd31fcb1d8deaf1735dc13f6b8d (patch) | |
tree | fc5851f8e715c73fb2efd7a5c5bbc34df6f83984 /app/src/main | |
parent | fac9e7612f559639c5bc6809a8bd9c252f38569c (diff) |
Replace FrameLayouts with recommended FragmentContainerView
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/res/layout-sw600dp/main_activity.xml | 4 | ||||
-rw-r--r-- | app/src/main/res/layout/main_activity.xml | 10 |
2 files changed, 5 insertions, 9 deletions
diff --git a/app/src/main/res/layout-sw600dp/main_activity.xml b/app/src/main/res/layout-sw600dp/main_activity.xml index 36f9eaff..bb3e56d7 100644 --- a/app/src/main/res/layout-sw600dp/main_activity.xml +++ b/app/src/main/res/layout-sw600dp/main_activity.xml @@ -10,14 +10,14 @@ android:showDividers="middle" tools:context=".activity.MainActivity"> - <fragment + <androidx.fragment.app.FragmentContainerView android:name="com.wireguard.android.fragment.TunnelListFragment" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="2" android:tag="LIST" /> - <FrameLayout + <androidx.fragment.app.FragmentContainerView android:id="@+id/detail_container" android:layout_width="0dp" android:layout_height="match_parent" diff --git a/app/src/main/res/layout/main_activity.xml b/app/src/main/res/layout/main_activity.xml index a4fd7fd1..497aaac3 100644 --- a/app/src/main/res/layout/main_activity.xml +++ b/app/src/main/res/layout/main_activity.xml @@ -6,14 +6,10 @@ android:layout_height="match_parent" tools:context=".activity.MainActivity"> - <fragment + <androidx.fragment.app.FragmentContainerView + android:id="@+id/detail_container" android:name="com.wireguard.android.fragment.TunnelListFragment" android:layout_width="match_parent" android:layout_height="match_parent" - android:tag="LIST" /> - - <FrameLayout - android:id="@+id/detail_container" - android:layout_width="match_parent" - android:layout_height="match_parent" /> + android:tag="LIST"/> </FrameLayout> |