Android Studio tutorial - How to use spinner in android. Android spinner example. NEW

preview_player
Показать описание
Android Studio 2.3.3 support - Android spinner (drop down list) example - NEW example for beginner in android. This example use switch case statement for spinner. Android studio 2.3.3 supported tutorial.
Spinner have its own drop down list where from user select a option.
Android spinner string array resource is used here.

-~-~~-~~~-~~-~-
Please watch: "Android Studio 2.3.3 - Show installed application in android | Fresh Content 2017 | **Source Code **"
-~-~~-~~~-~~-~-
Рекомендации по теме
Комментарии
Автор

This worked liked a charm! thanks mate! easy to follow and you don't even use a mic. Nice work!

meyo
Автор

how to add hash map key and value into the spinner rather than array list ? pls give me the syntax.

Thanks in advance

blackholeloop
Автор

Me again, but now with another doubt. I scoured the internet and did not find the answer.
Help me please?

I want to make a register with spiners that the 1st influences the 2nd spinner (type a filter)

It would be very easy if I could just do a Switch / Case just to compare the index and change the string.Array inside each spinner adapter, but I've heard that this feature is impossible in java.

I have now started the grossest way of repeating the same spinner several times, but with a different value, and I misunderstood the message (adapter is alreary defined in the scope).

Can you help me with some solution to this problem? See my scenario:


Switch ()) {
            
            Case 0:
                Systems1 = (Spinner) findViewById (R.id.spinCID);
                ArrayAdapter adapter1 = (this,
                        R.array.CitySP,
(adapter1);
                break;

            Case 1:
                Systems1 = (Spinner) findViewById (R.id.spinCID);
                ArrayAdapter adapter1 = (this,
                        R.array.CityRJ,
(adapter1);
                break;

So? Or where can I study the solution?

MrCleiton
Автор

when we creat a spinner and drop down list . so i want that i clicked on one of the selected item in spinner so that will sho me the further information. for example. i clicked on the name of TAHIR. so they will show me the tahir reg no# and father name, etc. how i do, plz help

qamarjaafri
Автор

if i have to update spinner in recyclerview then what should i do?

poojapatwa
Автор

I have used code- " noOfDaysText = noOfDaysList.get(position);
noOfDaysText = noOfDaysText.replaceAll("\\+", "");
noOfDaysText = noOfDaysText.replaceAll(" ", "%20"); " inside onItemSelected() method instead of your toast...
noOfDaysList consist of days (four days)...and noOfDaysText consists of price when i click on particular item "days" then it should be update the price ...but it is showing only once at last item

poojapatwa
join shbcf.ru