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
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

Public Constructors

public ZoomControls (Context context)

public ZoomControls (Context context, AttributeSet attrs)

Public Methods

public boolean hasFocus ()

Returns true if this view has or contains focus

Returns
  • true if this view has or contains focus

public void hide ()

public boolean onTouchEvent (MotionEvent event)

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)

public void setIsZoomOutEnabled (boolean isEnabled)

public void setOnZoomInClickListener (View.OnClickListener listener)

public void setOnZoomOutClickListener (View.OnClickListener listener)

public void setZoomSpeed (long speed)

public void show ()