setTranslation

open override fun setTranslation(translationX: Float, translationY: Float)

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

Parameters

translateX

the offset in pixels towards the right of the screen.

translateY

the offset in pixels towards the bottom of the screen.