public interface ThemedSpinnerAdapter
implements SpinnerAdapter
android.widget.ThemedSpinnerAdapter |
Known Indirect Subclasses |
SpinnerAdapter的一个扩展,它能够将下拉视图与正常视图的不同主题进行充气。
在 getDropDownView(int, View, ViewGroup)
创建视图时,实现此接口的类应使用提供给 setDropDownViewTheme(Theme)
的主题。
Inherited constants |
---|
From interface android.widget.Adapter
|
Public methods |
|
---|---|
abstract Resources.Theme |
getDropDownViewTheme() 返回以前通过调用 |
abstract void |
setDropDownViewTheme(Resources.Theme theme) 设置 |
Inherited methods |
|
---|---|
From interface android.widget.SpinnerAdapter
|
|
From interface android.widget.Adapter
|
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 |
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 |