Added in API level 1
Deprecated in API level 26

ZoomButton


open class ZoomButton : ImageButton, View.OnLongClickListener
kotlin.Any
   ↳ android.view.View
   ↳ android.widget.ImageView
   ↳ android.widget.ImageButton
   ↳ android.widget.ZoomButton

This widget provides a simple utility for turning a continued long-press event into a series of clicks at some set frequency. There is no actual 'zoom' functionality handled by this widget directly. Instead, clients of this API should set up an onClickListener to handle zoom functionality. That click listener is called on a frequency determined by setZoomSpeed(long) whenever the user long-presses on the ZoomButton.

Summary

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

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

ZoomButton(context: Context!, attrs: AttributeSet!, defStyleAttr: Int)

ZoomButton(context: Context!, attrs: AttributeSet!, defStyleAttr: Int, defStyleRes: Int)

Public methods
open Boolean
dispatchUnhandledMove(focused: View!, direction: Int)

This method is the last chance for the focused view and its ancestors to respond to an arrow key.

open CharSequence!

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

open Boolean
onKeyUp(keyCode: Int, event: KeyEvent!)

Default implementation of KeyEvent.Callback.onKeyUp(): perform clicking of the view when KeyEvent.KEYCODE_DPAD_CENTER, KeyEvent.KEYCODE_ENTER or KeyEvent.KEYCODE_SPACE is released.

open Boolean

Called when a view has been clicked and held.

open Boolean

Implement this method to handle pointer events.

open Unit
setEnabled(enabled: Boolean)

Set the enabled state of this view.

open Unit

Sets the delay between calls to the widget's onClickListener.

Inherited functions