Skip to content

Most visited

Recently visited

navigation

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
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.