Added in API level 1
Deprecated in API level 29

ZoomControls


open class ZoomControls : LinearLayout
kotlin.Any
   ↳ android.view.View
   ↳ android.view.ViewGroup
   ↳ android.widget.LinearLayout
   ↳ android.widget.ZoomControls

The ZoomControls class displays a simple set of controls used for zooming and provides callbacks to register for events.

Summary

Inherited XML attributes
Inherited constants
Public constructors
ZoomControls(context: Context!)

ZoomControls(context: Context!, attrs: AttributeSet!)

Public methods
open CharSequence!

Return the class name of this object to be used for accessibility purposes.

open Boolean

Returns true if this view has or contains focus

open Unit

open Boolean

Implement this method to handle pointer events.

open Unit

open Unit

open Unit

open Unit

open Unit

open Unit

Inherited functions
Inherited properties

Public constructors

ZoomControls

Added in API level 1
ZoomControls(context: Context!)

ZoomControls

Added in API level 1
ZoomControls(
    context: Context!,
    attrs: AttributeSet!)

Public methods

getAccessibilityClassName

Added in API level 23
Deprecated in API level 29
open fun getAccessibilityClassName(): CharSequence!

Deprecated: Deprecated in Java.

Return the class name of this object to be used for accessibility purposes. Subclasses should only override this if they are implementing something that should be seen as a completely new class of view when used by accessibility, unrelated to the class it is deriving from. This is used to fill in AccessibilityNodeInfo.setClassName.

hasFocus

Added in API level 1
open fun hasFocus(): Boolean

Deprecated: Deprecated in Java.

Returns true if this view has or contains focus

Return
Boolean true if this view has or contains focus

hide

Added in API level 1
open fun hide(): Unit

Deprecated: Deprecated in Java.

onTouchEvent

Added in API level 1
open fun onTouchEvent(event: MotionEvent!): Boolean

Deprecated: Deprecated in Java.

Implement this method to handle pointer events.

This method is called to handle motion events where pointers are down on the view. For example, this could include touchscreen touches, stylus touches, or click-and-drag events from a mouse. However, it is not called for motion events that do not involve pointers being down, such as hover events or mouse scroll wheel movements.

If this method is used to detect click actions, it is recommended that the actions be performed by implementing and calling performClick(). This will ensure consistent system behavior, including:

  • obeying click sound preferences
  • dispatching OnClickListener calls
  • handling ACTION_CLICK when accessibility features are enabled
Parameters
event MotionEvent!: The motion event.
Return
Boolean True if the event was handled, false otherwise.

setIsZoomInEnabled

Added in API level 1
open fun setIsZoomInEnabled(isEnabled: Boolean): Unit

Deprecated: Deprecated in Java.

setIsZoomOutEnabled

Added in API level 1
open fun setIsZoomOutEnabled(isEnabled: Boolean): Unit

Deprecated: Deprecated in Java.

setOnZoomInClickListener

Added in API level 1
open fun setOnZoomInClickListener(listener: View.OnClickListener!): Unit

Deprecated: Deprecated in Java.

setOnZoomOutClickListener

Added in API level 1
open fun setOnZoomOutClickListener(listener: View.OnClickListener!): Unit

Deprecated: Deprecated in Java.

setZoomSpeed

Added in API level 1
open fun setZoomSpeed(speed: Long): Unit

Deprecated: Deprecated in Java.

show

Added in API level 1
open fun show(): Unit

Deprecated: Deprecated in Java.