Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AppCompatSpinner vs android.widget.Spinner for app with min SDK version 14

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?

like image 230
R World Avatar asked Aug 03 '16 06:08

R World


People also ask

Who is the parent class of spinner?

Android spinner is associated with AdapterView. So you need to use one of the adapter classes with spinner.

What is set spinner show () method?

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.

What is spinner prompt?

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.


1 Answers

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.

like image 80
user4989692 Avatar answered Sep 20 '22 23:09

user4989692