setTranslation

abstract fun setTranslation(translateX: Float, translateY: Float)

Set the translation of the widget in pixels, relative to it's current position.

Parameters

translateX

the offset in pixels towards the right of the screen.

translateY

the offset in pixels towards the bottom of the screen.