1

I'm writing a custom Transition for textSize of TextView as the shared element enter transition between two activities. I'm stuck with implementing the captureStartValues and captureEndValues. TransitionValues.view in these two methods is the same instance, which is just the TextView at start scene(if I add this transition in starting activity) or at end scene(if I add it in launching activity).

The accepted answer of this post uses SharedElementCallback(in his github demo) to set TextView's textSize which results in the TextSizeTransition to detect the correct textSize in start scene and end scene.

What I want to know is that, is it possible to detect the textSize of TextViews both in start scene and end scene just in custom TextSizeTransition without using SharedElementCallback?

Maybe like ChangeBounds, it captures start values and end values just using the target view from TransitionValues directly(it seems so from the source code).

Thanks.

Community
  • 1
  • 1
Lym Zoy
  • 951
  • 10
  • 16

0 Answers0