다음을 통해 공유


View.TranslationY Property

Definition

The vertical location of this view relative to its #getTop() top position. -or- Sets the vertical location of this view relative to its #getTop() top position.

public virtual float TranslationY { [Android.Runtime.Register("getTranslationY", "()F", "GetGetTranslationYHandler")] get; [Android.Runtime.Register("setTranslationY", "(F)V", "GetSetTranslationY_FHandler")] set; }
[<get: Android.Runtime.Register("getTranslationY", "()F", "GetGetTranslationYHandler")>]
[<set: Android.Runtime.Register("setTranslationY", "(F)V", "GetSetTranslationY_FHandler")>]
member this.TranslationY : single with get, set

Property Value

The vertical position of this view relative to its top position, in pixels.

Attributes

Remarks

Property getter documentation:

The vertical location of this view relative to its #getTop() top position. This position is post-layout, in addition to wherever the object's layout placed it.

Java documentation for android.view.View.getTranslationY().

Property setter documentation:

Sets the vertical location of this view relative to its #getTop() top position. This effectively positions the object post-layout, in addition to wherever the object's layout placed it.

Java documentation for android.view.View.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