I have seen commits in androidx-master-dev that adds translationX/Y and pivotX/Y to drawLayer, which is pretty exciting. Should we expect them in dev08 or dev09?
Leland Richardson [G]
03/27/2020, 5:45 PM
dev08 should have them
03/27/2020, 5:47 PM
That is awesome @Leland Richardson [G], once they land, I will refactor my code to use them.
Zach Klippenstein (he/him) [MOD]
03/27/2020, 6:01 PM
How is pivot different from rotation?
03/27/2020, 6:18 PM
The default rotation you see pivots around the center which is probably width/2 and height/2. Having pivotX/Y allows you to specify origin(i. e points) on the XY plane around which the rotation should pivot upon.