Most visited

Recently visited

Added in API level 1

ImageSwitcher

public class ImageSwitcher
extends ViewSwitcher

java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.FrameLayout
         ↳ android.widget.ViewAnimator
           ↳ android.widget.ViewSwitcher
             ↳ android.widget.ImageSwitcher


Summary

Inherited XML attributes

From class android.widget.ViewAnimator
From class android.widget.FrameLayout
From class android.view.ViewGroup
From class android.view.View

Inherited constants

From class android.view.ViewGroup
From class android.view.View

Inherited fields

From class android.view.View

Public constructors

ImageSwitcher(Context context)
ImageSwitcher(Context context, AttributeSet attrs)

Public methods

CharSequence getAccessibilityClassName()

Return the class name of this object to be used for accessibility purposes.

void setImageDrawable(Drawable drawable)
void setImageResource(int resid)
void setImageURI(Uri uri)

Inherited methods

From class android.widget.ViewSwitcher
From class android.widget.ViewAnimator
From class android.widget.FrameLayout
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.view.ViewParent
From interface android.view.ViewManager
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.accessibility.AccessibilityEventSource

Public constructors

ImageSwitcher

Added in API level 1
ImageSwitcher (Context context)

Parameters
context Context

ImageSwitcher

Added in API level 1
ImageSwitcher (Context context, 
                AttributeSet attrs)

Parameters
context Context
attrs AttributeSet

Public methods

getAccessibilityClassName

Added in API level 23
CharSequence getAccessibilityClassName ()

Return the class name of this object to be used for accessibility purposes. Subclasses should only override this if they are implementing something that should be seen as a completely new class of view when used by accessibility, unrelated to the class it is deriving from. This is used to fill in AccessibilityNodeInfo.setClassName.

Returns
CharSequence

setImageDrawable

Added in API level 1
void setImageDrawable (Drawable drawable)

Parameters
drawable Drawable

setImageResource

Added in API level 1
void setImageResource (int resid)

Parameters
resid int

setImageURI

Added in API level 1
void setImageURI (Uri uri)

Parameters
uri Uri

Hooray!