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

返回此对象的类名称以用于辅助功能。

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

返回此对象的类名称以用于辅助功能。 如果子类正在实现的东西应该被视为一个全新的视图类,当它被可访问性使用时,子类只应该覆盖这个子类,与它所源自的类无关。 这用于填写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!