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)

open CharSequence!

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

open Boolean

open Boolean

open Unit
setEnabled(enabled: Boolean)

open Unit

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

Inherited functions