Skip to content

Instantly share code, notes, and snippets.

@Richie97
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Richie97/59c1d5536f54fdfd1c1b to your computer and use it in GitHub Desktop.
Save Richie97/59c1d5536f54fdfd1c1b to your computer and use it in GitHub Desktop.
Setting View Name
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/cardImage"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scaleType="centerCrop"
android:transitionName="cardImage"
android:src="@drawable/smiley"/>
</RelativeLayout>
//Or if creating view programmatically
View cardImage = (ImageView) findViewById(R.id.cardImage);
cardImage.setTransitionName("cardImage");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment