ThemedSpinnerAdapter
public interface ThemedSpinnerAdapter extends 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 |
|---|
public final class ThemedSpinnerAdapter.HelperA helper class which allows easy integration of |
Public methods |
|
|---|---|
abstract @Nullable Resources.Theme |
Returns the value previously set by a call to |
abstract void |
Sets the |
Inherited Constants |
||||
|---|---|---|---|---|
|
Inherited methods |
||
|---|---|---|
|
Public methods
getDropDownViewTheme
abstract @Nullable Resources.Theme getDropDownViewTheme()
Returns the value previously set by a call to setDropDownViewTheme.
| Returns | |
|---|---|
@Nullable Resources.Theme |
the |
setDropDownViewTheme
abstract void setDropDownViewTheme(@Nullable Resources.Theme theme)
Sets the Resources.Theme against which drop-down views are inflated.
| Parameters | |
|---|---|
@Nullable Resources.Theme theme |
the context against which to inflate drop-down views, or |
| See also | |
|---|---|
getDropDownView |