次の方法で共有


ViewAsserts.AssertTopAligned Method

Definition

Overloads

AssertTopAligned(View, View)

Assert that two views are top aligned, that is that their top edges are on the same y location.

AssertTopAligned(View, View, Int32)

Assert that two views are top aligned, that is that their top edges are on the same y location, with respect to the specified margin.

AssertTopAligned(View, View)

Assert that two views are top aligned, that is that their top edges are on the same y location.

[Android.Runtime.Register("assertTopAligned", "(Landroid/view/View;Landroid/view/View;)V", "")]
public static void AssertTopAligned (Android.Views.View? first, Android.Views.View? second);
[<Android.Runtime.Register("assertTopAligned", "(Landroid/view/View;Landroid/view/View;)V", "")>]
static member AssertTopAligned : Android.Views.View * Android.Views.View -> unit

Parameters

first
View

The first view

second
View

The second view

Attributes

Remarks

Assert that two views are top aligned, that is that their top edges are on the same y location.

Java documentation for android.test.ViewAsserts.assertTopAligned(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

AssertTopAligned(View, View, Int32)

Assert that two views are top aligned, that is that their top edges are on the same y location, with respect to the specified margin.

[Android.Runtime.Register("assertTopAligned", "(Landroid/view/View;Landroid/view/View;I)V", "")]
public static void AssertTopAligned (Android.Views.View? first, Android.Views.View? second, int margin);
[<Android.Runtime.Register("assertTopAligned", "(Landroid/view/View;Landroid/view/View;I)V", "")>]
static member AssertTopAligned : Android.Views.View * Android.Views.View * int -> unit

Parameters

first
View

The first view

second
View

The second view

margin
Int32

The margin between the first view and the second view

Attributes

Remarks

Assert that two views are top aligned, that is that their top edges are on the same y location, with respect to the specified margin.

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

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