Android Guides | Samples

Android.Widget.ZoomButtonsController Class

The ZoomButtonsController handles showing and hiding the zoom controls and positioning it relative to an owner view.

See Also: ZoomButtonsController

Syntax

[Android.Runtime.Register("android/widget/ZoomButtonsController", DoNotGenerateAcw=true)]
public class ZoomButtonsController : Object, View+IOnTouchListener, IDisposable

Remarks

The ZoomButtonsController handles showing and hiding the zoom controls and positioning it relative to an owner view. It also gives the client access to the zoom controls container, allowing for additional accessory buttons to be shown in the zoom controls window.

Typically, clients should call ZoomButtonsController.Visible on a touch down or move (no need to call ZoomButtonsController.Visible since it will time out on its own). Also, whenever the owner cannot be zoomed further, the client should update ZoomButtonsController.SetZoomInEnabled(Boolean) and ZoomButtonsController.SetZoomOutEnabled(Boolean).

If you are using this with a custom View, please call ZoomButtonsController.Visible from View.OnDetachedFromWindow and from View.OnVisibilityChanged(View,ViewStates) when visibility != View.VISIBLE.

[Android Documentation]

Requirements

Namespace: Android.Widget
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 4

The members of Android.Widget.ZoomButtonsController are listed below.

See Also: Object

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

AutoDismissedBoolean. Whether the zoom controls will be automatically dismissed after showing.
[read-only]
ContainerViewGroup. Gets the container that is the parent of the zoom controls.
VisibleBoolean. Whether the zoom controls are visible to the user.
[read-only]
ZoomControlsView. Gets the view for the zoom controls.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

OnTouch(View, MotionEvent) : Boolean
SetFocusable(Boolean)
Sets whether the zoom controls should be focusable.
SetOnZoomListener(ZoomButtonsController+IOnZoomListener)
Sets the NoType:android/widget/ZoomButtonsController$OnZoomListener;Href=../../../reference/android/widget/ZoomButtonsController.OnZoomListener.html listener that receives callbacks to zoom.
SetZoomInEnabled(Boolean)
Whether to enable the zoom in control.
SetZoomOutEnabled(Boolean)
Whether to enable the zoom out control.
SetZoomSpeed(Int64)
Sets the delay between zoom callbacks as the user holds a zoom button.

Public Events