Skip to content

Commit

Permalink
Replace FrameLayout with FragmentContainerView
Browse files Browse the repository at this point in the history
> 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
  • Loading branch information
Goooler committed Apr 25, 2024
1 parent a14e648 commit 4dc2385
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion People/app/src/main/res/layout/bubble_activity.xml
Expand Up @@ -14,7 +14,7 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<FrameLayout
<androidx.fragment.app.FragmentContainerView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/container"
android:layout_width="match_parent"
Expand Down
2 changes: 1 addition & 1 deletion People/app/src/main/res/layout/main_activity.xml
Expand Up @@ -67,7 +67,7 @@

</androidx.constraintlayout.widget.ConstraintLayout>

<FrameLayout
<androidx.fragment.app.FragmentContainerView
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="0dp"
Expand Down

0 comments on commit 4dc2385

Please sign in to comment.