Android AbsSpinner

| Page Views: 248

AbsSpinner is the parent class for Spinner.

Spinner is a view that allows us display items in a dropdown manner, allowing user pick a single item at a time.

Spinner relies on abstractions defined in this AbsSpinner class, inheriting several concrete and abstract methods.

The fact that this class has abstract methods means it's also abstract.

public abstract class AbsSpinner...{}

This class is an adapterview. So it's children will rely on an Adapter for binding of data. Specifically a SpinnerAdapter.

public abstract class AbsSpinner extends AdapterView<SpinnerAdapter>

This class like other adapterviews is defined in the android.widget package. It's existed since the first release of Android, API Level 1.

You won't use this class in your day to day projects since it's a base class meant to provide abstraction to the Spinner class. Instead you'll use Spinner.

This class has 3 children:

Subclass Description
Spinner view used to provide a quick way to select a single value from a set.
Gallery view that shows items in a center-locked, horizontally scrolling list.DEPRECATED IN API LEVEL 16.

How do You Feel after reading this?

According to scientists, we humans have 8 primary innate emotions: joy, acceptance, fear, surprise, sadness, disgust, anger, and anticipation. Feel free to tell us how you feel about this article using these emotes or via the comment section.

About Me.

After completing his Software Engineering bachelors program, Oclemy(Clement Ochieng) these days is a man of two lives. At day he works for a startup in Nairobi, Kenya. At night he works tirelessly on building ProgrammingWizards TV, a tv channel for student coders and this website to help share the source code. In between he practices Meditation and Self actualization to help him keep balance. He also likes going for long solo walks to connect more with nature.


What do You Think

Previous Post Next Post