Udostępnij za pośrednictwem


RenderNode.SetTranslationY(Single) Method

Definition

Sets the translation value for the display list on the Y axis.

[Android.Runtime.Register("setTranslationY", "(F)Z", "", ApiSince=29)]
public bool SetTranslationY (float translationY);
[<Android.Runtime.Register("setTranslationY", "(F)Z", "", ApiSince=29)>]
member this.SetTranslationY : single -> bool

Parameters

translationY
Single

The Y axis translation value of the display list, in pixels

Returns

True if the value changed, false if the new value was the same as the previous value.

Attributes

Remarks

Sets the translation value for the display list on the Y axis.

Java documentation for android.graphics.RenderNode.setTranslationY(float).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to