Android APIs
public interface

ThemedSpinnerAdapter

implements SpinnerAdapter
android.widget.ThemedSpinnerAdapter
Known Indirect Subclasses

Class Overview

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

Summary

[Expand]
Inherited Constants
From interface android.widget.Adapter
Public Methods
abstract Resources.Theme getDropDownViewTheme()
Returns the value previously set by a call to setDropDownViewTheme(Theme).
abstract void setDropDownViewTheme(Resources.Theme theme)
Sets the Resources.Theme against which drop-down views are inflated.
[Expand]
Inherited Methods
From interface android.widget.SpinnerAdapter
From interface android.widget.Adapter

Public Methods

public abstract Resources.Theme getDropDownViewTheme ()

Added in API level 23

Returns the value previously set by a call to setDropDownViewTheme(Theme).

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

public abstract void setDropDownViewTheme (Resources.Theme theme)

Added in API level 23

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

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