Android
android.widget
public class

android.widget.ZoomControls

java.lang.Object
android.view.View Drawable.Callback KeyEvent.Callback
android.view.ViewGroup ViewManager ViewParent
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

XML Attributes inherited from class android.widget.LinearLayout
XML Attributes inherited from class android.view.ViewGroup
XML Attributes inherited from class android.view.View
Constants inherited from class android.widget.LinearLayout
Constants inherited from class android.view.ViewGroup
Constants inherited from class android.view.View
Fields inherited from class android.view.ViewGroup
Fields inherited 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()
Methods inherited from class android.widget.LinearLayout
Methods inherited from class android.view.ViewGroup
Methods inherited from class android.view.View
Methods inherited from class java.lang.Object
Methods inherited from interface android.graphics.drawable.Drawable.Callback
Methods inherited from interface android.view.KeyEvent.Callback
Methods inherited from interface android.view.ViewManager
Methods inherited from interface android.view.ViewParent

Details

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

Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48