Replace FrameLayouts with recommended FragmentContainerView

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-02-23 20:06:41 +05:30
parent fac9e7612f
commit 4267e94dcd
2 changed files with 5 additions and 9 deletions

View File

@ -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"

View File

@ -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>