Freigeben über


ViewAsserts.AssertHorizontalCenterAligned(View, View) Method

Definition

Assert that the test view is horizontally center aligned with respect to the reference view.

[Android.Runtime.Register("assertHorizontalCenterAligned", "(Landroid/view/View;Landroid/view/View;)V", "")]
public static void AssertHorizontalCenterAligned (Android.Views.View? reference, Android.Views.View? test);
[<Android.Runtime.Register("assertHorizontalCenterAligned", "(Landroid/view/View;Landroid/view/View;)V", "")>]
static member AssertHorizontalCenterAligned : Android.Views.View * Android.Views.View -> unit

Parameters

reference
View

The reference view

test
View

The view that should be center aligned with the reference view

Attributes

Remarks

Assert that the test view is horizontally center aligned with respect to the reference view.

Java documentation for android.test.ViewAsserts.assertHorizontalCenterAligned(android.view.View, android.view.View).

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