How to put a button at the center of all android screens?

Hi.

Can someone tell me how to put a button at the center of all android screens?

Thanks

If your model/button handle is in its center then:
buttonPosition (X,Y) = buttonPosition (XScreenRes / 2, YScreenRes / 2)

If your model/button handle is at its top-left and the screen coordinates 0,0 origin are at top-left, then:
buttonPosition (X,Y) = buttonPosition ((XScreenRes / 2) - (buttonXSize / 2)), ((YScreenRes / 2) - (buttonYSize / 2))

Thanks!! Your answer solves my problem :slight_smile: