custom-lollipop-transitions icon indicating copy to clipboard operation
custom-lollipop-transitions copied to clipboard

Issues when "bigger" TextView is at margin

Open ndorigatti opened this issue 9 years ago • 0 comments

Hi, I was struggling about why my animation is not working correctly but then found that the problem is not my code, but wheter in the AOSP Transition framework or in this example (honestly, did not dig into view measuring etc...)

I found that just modifying the end scene by putting the gravity of the TextView to:

    android:layout_gravity="center|start"

instead of

    android:layout_gravity="center"

And slowing down animations the issue is shown. The Text increases in size but goes outside on the left, when at the top size, it shift to the right and places at the correct end scene position. The back transition is instead correct.

My idea is that is something related to the "ChangeBounds" that takes the center of the view as pinpoint... and having different text sizes makes the center to not be aligned between the start and the end scene. Probably this happens only when animating view on the "same" coordinate (y in my case) Am I Right? Is there something we can do?

EDIT: the issue is there even if startscene is top|end and endscene center|end, while using center|top and center the animation is correct

ndorigatti avatar Jun 09 '15 21:06 ndorigatti