Android
android.widget
public class

android.widget.ZoomButton

java.lang.Object
android.view.View Drawable.Callback KeyEvent.Callback
android.widget.ImageView
android.widget.ImageButton
android.widget.ZoomButton View.OnLongClickListener

Summary

XML Attributes inherited from class android.widget.ImageView
XML Attributes inherited from class android.view.View
Constants inherited from class android.view.View
Fields inherited from class android.view.View

Public Constructors

            ZoomButton(Context context)
            ZoomButton(Context context, AttributeSet attrs)
            ZoomButton(Context context, AttributeSet attrs, int defStyle)

Public Methods

          boolean  dispatchUnhandledMove(View focused, int direction)
This method is the last chance for the focused view and its ancestors to respond to an arrow key.
          boolean  onKeyUp(int keyCode, KeyEvent event)
Default implementation of KeyEvent.Callback.onKeyMultiple(): perform clicking of the view when KEYCODE_DPAD_CENTER or KEYCODE_ENTER is released.
          boolean  onLongClick(View v)
Called when a view has been clicked and held.
          boolean  onTouchEvent(MotionEvent event)
Implement this method to handle touch screen motion events.
          void  setEnabled(boolean enabled)
Set the enabled state of this view.
          void  setZoomSpeed(long speed)
Methods inherited from class android.widget.ImageButton
Methods inherited from class android.widget.ImageView
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.View.OnLongClickListener

Details

Public Constructors

public ZoomButton(Context context)

public ZoomButton(Context context, AttributeSet attrs)

public ZoomButton(Context context, AttributeSet attrs, int defStyle)

Public Methods

public boolean dispatchUnhandledMove(View focused, int direction)

This method is the last chance for the focused view and its ancestors to respond to an arrow key. This is called when the focused view did not consume the key internally, nor could the view system find a new view in the requested direction to give focus to.

Parameters

focused The currently focused view.
direction The direction focus wants to move. One of FOCUS_UP, FOCUS_DOWN, FOCUS_LEFT, and FOCUS_RIGHT.

Returns

  • True if the this view consumed this unhandled move.

public boolean onKeyUp(int keyCode, KeyEvent event)

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

Parameters

keyCode A key code that represents the button pressed, from KeyEvent.
event The KeyEvent object that defines the button action.

public boolean onLongClick(View v)

Called when a view has been clicked and held.

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 setEnabled(boolean enabled)

Set the enabled state of this view. The interpretation of the enabled state varies by subclass.

Parameters

enabled True if this view is enabled, false otherwise.

public void setZoomSpeed(long speed)

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