Udostępnij za pośrednictwem


Magnifier.Show Method

Definition

Overloads

Show(Single, Single, Single, Single)

Shows the magnifier on the screen at a position that is independent from its content position.

Show(Single, Single)

Shows the magnifier on the screen.

Show(Single, Single, Single, Single)

Shows the magnifier on the screen at a position that is independent from its content position.

[Android.Runtime.Register("show", "(FFFF)V", "", ApiSince=29)]
public void Show (float sourceCenterX, float sourceCenterY, float magnifierCenterX, float magnifierCenterY);
[<Android.Runtime.Register("show", "(FFFF)V", "", ApiSince=29)>]
member this.Show : single * single * single * single -> unit

Parameters

sourceCenterX
Single

horizontal coordinate of the source center relative to the view

sourceCenterY
Single

vertical coordinate of the source center, relative to the view

magnifierCenterX
Single

horizontal coordinate of the magnifier center, relative to the view

magnifierCenterY
Single

vertical coordinate of the magnifier center, relative to the view

Attributes

Remarks

Shows the magnifier on the screen at a position that is independent from its content position. The first two arguments represent the coordinates of the center of the content source going to be magnified and copied to the magnifier. The last two arguments represent the coordinates of the center of the magnifier itself. All four coordinates are relative to the top left corner of the magnified view. If you consider using this method such that the offset between the source center and the magnifier center coordinates remains constant, you should consider using method #show(float, float) instead.

Java documentation for android.widget.Magnifier.show(float, float, float, 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

Show(Single, Single)

Shows the magnifier on the screen.

[Android.Runtime.Register("show", "(FF)V", "", ApiSince=28)]
public void Show (float sourceCenterX, float sourceCenterY);
[<Android.Runtime.Register("show", "(FF)V", "", ApiSince=28)>]
member this.Show : single * single -> unit

Parameters

sourceCenterX
Single

horizontal coordinate of the source center, relative to the view

sourceCenterY
Single

vertical coordinate of the source center, relative to the view

Attributes

Remarks

Shows the magnifier on the screen. The method takes the coordinates of the center of the content source going to be magnified and copied to the magnifier. The coordinates are relative to the top left corner of the magnified view. The magnifier will be positioned such that its center will be at the default offset from the center of the source. The default offset can be specified using the method Builder#setDefaultSourceToMagnifierOffset(int, int). If the offset should be different across calls to this method, you should consider to use method #show(float, float, float, float) instead.

Java documentation for android.widget.Magnifier.show(float, 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