I am developing application with minimum SDK version 14 Ice-cream sandwitch and targeted version is Android Marshmallow.
DO I need to use AppCompatSpinner or normal spinner will work on ICS devices with all material look and feel?
Android spinner is associated with AdapterView. So you need to use one of the adapter classes with spinner.
Spinners provide a quick way to select one value from a set. In the default state, a spinner shows its currently selected value. Touching the spinner displays a dropdown menu with all other available values, from which the user can select a new one.
Show Prompt Text In A Spinner. Spinner is a very popular widget for android app developers. The Spinner widget is a single selection list widget. The Spinner shows an item at a time in its visible area. Other available items are visible inside a drop-down menu or a dialog view depending on Spinner mode.
If you look at the AppCompatSpinner page, you will see the folowing line.
This will automatically be used when you use Spinner in your layouts. You should only need to manually use this class when writing custom views.
So you don't have to choose between Spinners and AppCompatSpinners.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With