ThemedSpinnerAdapter
interface ThemedSpinnerAdapter : SpinnerAdapter
An extension of SpinnerAdapter that is capable of inflating drop-down views against a different theme than normal views.
Classes that implement this interface should use the theme provided to setDropDownViewTheme when creating views in getDropDownView.
The Helper class is provided to aide implementation in a backwards compatible way.
Summary
Nested types |
|---|
|
A helper class which allows easy integration of |
Public functions |
|
|---|---|
Resources.Theme? |
Returns the value previously set by a call to |
Unit |
setDropDownViewTheme(theme: Resources.Theme?)Sets the |
Inherited Constants |
||||
|---|---|---|---|---|
|
Inherited functions |
||
|---|---|---|
|
Public functions
getDropDownViewTheme
fun getDropDownViewTheme(): Resources.Theme?
Returns the value previously set by a call to setDropDownViewTheme.
| Returns | |
|---|---|
Resources.Theme? |
the |
setDropDownViewTheme
fun setDropDownViewTheme(theme: Resources.Theme?): Unit
Sets the Resources.Theme against which drop-down views are inflated.
| Parameters | |
|---|---|
theme: Resources.Theme? |
the context against which to inflate drop-down views, or |
| See also | |
|---|---|
getDropDownView |