Android
android.widget
public class

android.widget.ImageButton

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

An image button displays an image that can be pressed, or clicked, by the user.

XML attributes

See Button Attributes, View Attributes

Known Direct Subclasses

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

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

Protected Methods

          boolean  onSetAlpha(int alpha)
Invoked if there is a Transform that involves alpha.
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

Details

Public Constructors

public ImageButton(Context context)

public ImageButton(Context context, AttributeSet attrs)

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

Protected Methods

protected boolean onSetAlpha(int alpha)

Invoked if there is a Transform that involves alpha. Subclass that can draw themselves with the specified alpha should return true, and then respect that alpha when their onDraw() is called. If this returns false then the view may be redirected to draw into an offscreen buffer to fulfill the request, which will look fine, but may be slower than if the subclass handles it internally. The default implementation returns false.

Parameters

alpha The alpha (0..255) to apply to the view's drawing
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48