Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-master-dev
commit b7f4e647db981a59cfdb394b77fa036c230288c3
Author: Jeremy Woods <jbwoods@google.com>
Date: Mon Oct 14 16:20:27 2019
Add support for class attribute in FragmentContainerView
The Fragment tag supports (and prefers) the class attribute when
inflating a Fragment from xml. This change adds support for an
attribute called class to FragmentContainerView.
* This change does not fix the issue with Proguard stripping out
Fragment classes that are only referenced by FragmentContainerView *
Test: FragmentContainerInflateFragmentTest, navigation app
BUG: 142722242
Change-Id: I8d9ab1fcc78fe49e361293dd5fcefa946c89cb0e
M fragment/fragment/src/androidTest/java/androidx/fragment/app/FragmentContainerInflatedFragmentTest.kt
A fragment/fragment/src/androidTest/res/layout/inflated_fragment_container_view_with_class.xml
M fragment/fragment/src/main/java/androidx/fragment/app/FragmentContainerView.java
https://android-review.googlesource.com/1142425
https://goto.google.com/android-sha1/b7f4e647db981a59cfdb394b77fa036c230288c3
Branch: androidx-master-dev
commit b7f4e647db981a59cfdb394b77fa036c230288c3
Author: Jeremy Woods <jbwoods@google.com>
Date: Mon Oct 14 16:20:27 2019
Add support for class attribute in FragmentContainerView
The Fragment tag supports (and prefers) the class attribute when
inflating a Fragment from xml. This change adds support for an
attribute called class to FragmentContainerView.
* This change does not fix the issue with Proguard stripping out
Fragment classes that are only referenced by FragmentContainerView *
Test: FragmentContainerInflateFragmentTest, navigation app
BUG: 142722242
Change-Id: I8d9ab1fcc78fe49e361293dd5fcefa946c89cb0e
M fragment/fragment/src/androidTest/java/androidx/fragment/app/FragmentContainerInflatedFragmentTest.kt
A fragment/fragment/src/androidTest/res/layout/inflated_fragment_container_view_with_class.xml
M fragment/fragment/src/main/java/androidx/fragment/app/FragmentContainerView.java
jb...@google.com <jb...@google.com> #3
This has been fixed internally and will be available in the Fragment 1.2.0-rc01 release.
Description
<fragment
class="com.example.android$MyFragment"
android:id="@+id/myFragmentId"
android:layout_width="0px"
android:layout_height="wrap_content"
android:layout_weight="1"
android:label="@string/example_fragment" />
FragmentContainerView should also support a class attribute.