public class

ZoomControls

extends LinearLayout
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.LinearLayout
         ↳ android.widget.ZoomControls

Class Overview

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

Summary

[Expand]
Inherited XML Attributes
From class android.widget.LinearLayout
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Constants
From class android.widget.LinearLayout
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
ZoomControls(Context context)
ZoomControls(Context context, AttributeSet attrs)
Public Methods
boolean hasFocus()
Returns true if this view has or contains focus
void hide()
boolean onTouchEvent(MotionEvent event)
Implement this method to handle touch screen motion events.
void setIsZoomInEnabled(boolean isEnabled)
void setIsZoomOutEnabled(boolean isEnabled)
void setOnZoomInClickListener(View.OnClickListener listener)
void setOnZoomOutClickListener(View.OnClickListener listener)
void setZoomSpeed(long speed)
void show()
[Expand]
Inherited Methods
From class android.widget.LinearLayout
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.ViewManager
From interface android.view.ViewParent
From interface android.view.accessibility.AccessibilityEventSource

Public Constructors

public ZoomControls (Context context)

Since: API Level 1

public ZoomControls (Context context, AttributeSet attrs)

Since: API Level 1

Public Methods

public boolean hasFocus ()

Since: API Level 1

Returns true if this view has or contains focus

Returns
  • true if this view has or contains focus

public void hide ()

Since: API Level 1

public boolean onTouchEvent (MotionEvent event)

Since: API Level 1

Implement this method to handle touch screen motion events.

Parameters
event The motion event.
Returns
  • True if the event was handled, false otherwise.

public void setIsZoomInEnabled (boolean isEnabled)

Since: API Level 1

public void setIsZoomOutEnabled (boolean isEnabled)

Since: API Level 1

public void setOnZoomInClickListener (View.OnClickListener listener)

Since: API Level 1

public void setOnZoomOutClickListener (View.OnClickListener listener)

Since: API Level 1

public void setZoomSpeed (long speed)

Since: API Level 1

public void show ()

Since: API Level 1