Skip to content
This repository was archived by the owner on Jul 11, 2025. It is now read-only.

Commit 4dc2385

Browse files
authored
Replace FrameLayout with FragmentContainerView
> FragmentContainerView is a customized Layout designed specifically for Fragments. It extends FrameLayout, so it can reliably handle Fragment Transactions, and it also has additional features to coordinate with fragment behavior. https://developer.android.com/reference/androidx/fragment/app/FragmentContainerView
1 parent a14e648 commit 4dc2385

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

People/app/src/main/res/layout/bubble_activity.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
-->
17-
<FrameLayout
17+
<androidx.fragment.app.FragmentContainerView
1818
xmlns:android="http://schemas.android.com/apk/res/android"
1919
android:id="@+id/container"
2020
android:layout_width="match_parent"

People/app/src/main/res/layout/main_activity.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767

6868
</androidx.constraintlayout.widget.ConstraintLayout>
6969

70-
<FrameLayout
70+
<androidx.fragment.app.FragmentContainerView
7171
android:id="@+id/container"
7272
android:layout_width="match_parent"
7373
android:layout_height="0dp"

0 commit comments

Comments
 (0)