Android: Only specify the transition name for the target Activity.
The source Views don't need the transition name. We could get the name from the sharedView via getTransitionName, but since the TV ImageCardView isn't inflated in XML it would be to be manually set. I'm not sure if that would be any cleaner than this.
This commit is contained in:
parent
0fb3cb2f56
commit
5cb1a08b13
|
@ -18,7 +18,6 @@
|
||||||
android:id="@+id/image_game_screen"
|
android:id="@+id/image_game_screen"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:transitionName="image_game_screenshot"
|
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
tools:src="@drawable/placeholder_screenshot"
|
tools:src="@drawable/placeholder_screenshot"
|
||||||
tools:scaleType="centerCrop"/>
|
tools:scaleType="centerCrop"/>
|
||||||
|
|
Loading…
Reference in New Issue