Most visited

Recently visited

Added in API level 23

ThemedSpinnerAdapter

public interface ThemedSpinnerAdapter
implements SpinnerAdapter

android.widget.ThemedSpinnerAdapter
Known Indirect Subclasses


SpinnerAdapter的一个扩展,它能够将下拉视图与正常视图的不同主题进行充气。

getDropDownView(int, View, ViewGroup)创建视图时,实现此接口的类应使用提供给 setDropDownViewTheme(Theme)的主题。

Summary

Inherited constants

From interface android.widget.Adapter

Public methods

abstract Resources.Theme getDropDownViewTheme()

返回以前通过调用 setDropDownViewTheme(Theme)设置的值。

abstract void setDropDownViewTheme(Resources.Theme theme)

设置 Resources.Theme的下拉视图 Resources.Theme

Inherited methods

From interface android.widget.SpinnerAdapter
From interface android.widget.Adapter

Public methods

getDropDownViewTheme

Added in API level 23
Resources.Theme getDropDownViewTheme ()

返回以前通过调用 setDropDownViewTheme(Theme)设置的值。

Returns
Resources.Theme the Resources.Theme against which drop-down views are inflated, or null if one has not been explicitly set

setDropDownViewTheme

Added in API level 23
void setDropDownViewTheme (Resources.Theme theme)

设置 Resources.Theme针对哪个下拉视图被夸大。

Parameters
theme Resources.Theme: the context against which to inflate drop-down views, or null to use the default theme

也可以看看:

Hooray!