Pārlūkot izejas kodu

Replace FrameLayouts with recommended FragmentContainerView

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
master
Harsh Shandilya pirms 4 gadiem
vecāks
revīzija
4267e94dcd
2 mainītis faili ar 5 papildinājumiem un 9 dzēšanām
  1. +2
    -2
      app/src/main/res/layout-sw600dp/main_activity.xml
  2. +3
    -7
      app/src/main/res/layout/main_activity.xml

+ 2
- 2
app/src/main/res/layout-sw600dp/main_activity.xml Parādīt failu

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


+ 3
- 7
app/src/main/res/layout/main_activity.xml Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt