[Test] Shared View Transition

Take a following small test to confirm your implementation knowledge for the Android Shared View Animation


*Required field



 (a) 10
 (b) 13
 (c) 3
 (d) Dont know

 (a) android:transitionName
 (b) android:tagName
 (c) android:tagView
 (d) android:animationView

 (a) No change required
 (b) Declare item: name="android:windowActivityTransitions" as true

 (a) ActivityOptionsCompat optionsCompat = ActivityOptionsCompat.makeSceneTransitionAnimation(MainActivity.this, findViewById(R.id.imageView), "myImage");
 (b) intent.putExtra("myImage", findViewById(R.id.imageView)); startActivity(intent);

 (a) Pair pair1 = Pair.create(findViewById(R.id.textView), "myTitle"); ActivityOptionsCompat optionsCompat = ActivityOptionsCompat.makeSceneTransitionAnimation(MainActivity.this, pair1);
 (b) intent.putExtra("myImage",findViewById(R.id.imageView)); startActivity(intent);


Leave a Reply