Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the default pivot in an Android View?

Tags:

android

I'm trying to position some elements on my interface and can't find this info on the documentation.

In Android, what's the default pivot (X and Y) for a View?

like image 784
Julio Rodrigues Avatar asked Oct 15 '25 14:10

Julio Rodrigues


1 Answers

By default, the center of the view.

See View.setPivotX

Sets the x location of the point around which the view is rotated and scaled. By default, the pivot point is centered on the object. Setting this property disables this behavior and causes the view to use only the explicitly set pivotX and pivotY values.

like image 63
jspurlock Avatar answered Oct 19 '25 15:10

jspurlock



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!