Add transition group to RV
Due to the way children are added to an RV, animating the whole
RV parent rather than its children individually is much more reliable.
Bug: 33670718
Test: Navigate into a leanback dialog preference and observe entrance transition
Change-Id: Ib757a7ef3af65d45d693fbadcf8e63302bb95e43
diff --git a/v17/preference-leanback/res/layout/leanback_list_preference_fragment.xml b/v17/preference-leanback/res/layout/leanback_list_preference_fragment.xml
index f073f3e..ab299de 100644
--- a/v17/preference-leanback/res/layout/leanback_list_preference_fragment.xml
+++ b/v17/preference-leanback/res/layout/leanback_list_preference_fragment.xml
@@ -59,8 +59,10 @@
android:paddingEnd="56dp"
android:visibility="gone" />
- <android.support.v17.leanback.widget.VerticalGridView android:id="@android:id/list"
+ <android.support.v17.leanback.widget.VerticalGridView
+ android:id="@android:id/list"
android:layout_width="match_parent"
- android:layout_height="match_parent" />
+ android:layout_height="match_parent"
+ android:transitionGroup="true"/>
</LinearLayout>