Added in API level 23

ThemedSpinnerAdapter


interface ThemedSpinnerAdapter : SpinnerAdapter
android.widget.ThemedSpinnerAdapter

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(android.content.res.Resources.Theme) when creating views in SpinnerAdapter.getDropDownView(int, View, ViewGroup).

Summary

Inherited constants
Public methods
abstract Resources.Theme?

Returns the value previously set by a call to setDropDownViewTheme(android.content.res.Resources.Theme).

abstract Unit

Sets the Resources.Theme against which drop-down views are inflated.

Inherited functions

Public methods

getDropDownViewTheme

Added in API level 23
abstract fun getDropDownViewTheme(): Resources.Theme?

Returns the value previously set by a call to setDropDownViewTheme(android.content.res.Resources.Theme).

Return
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
abstract 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 null to use the default theme