Questions tagged [spinner]

Spinner is a widget that allows the user to select an item from a group, like a dropdown list.

A Spinner is a widget that allows the user to select an item from a group. It is similar to a dropdown list and will allow scrolling when the list exceeds the available vertical space on the screen.

Initial help

Code sample

Android design guide

5148 questions
1
vote
2 answers

Dynamic remove a view or override view Android

I have a spinner in my view. Based on spinner value position I am creating dynamic checkbox and data is coming through API. Now when I change Spinner value than I want : Hide previous checkbox and create new OR override previous checkbox with new…
Vivek
  • 449
  • 18
  • 36
1
vote
2 answers

Android Kotlin pass spinner values to mutable list

I have an application with a spinner that contains several items. I created it and all that Could anyone give me an example of how I can pass these values to a list I have? Using a mutableList? Cheers class NewKitListActivity : AppCompatActivity()…
KirstyHA
  • 29
  • 1
  • 3
1
vote
3 answers

How to assign a single object to a string variable from selected spinner item

I want to get countryCode of selected country from my spinner. here is the ArrayList countryList.add(jsonObjectHoldingCountries.optString("countryName") + " - " + jsonObjectHoldingCountries.optString("countryCode")); now i want to get only…
KhanStan99
  • 414
  • 8
  • 20
1
vote
1 answer

Unable to set the selected item in a Spinner

I am retrieving data from a database into an ArrayList, which is then used to populate a Spinner. This all works fine, I can see the items in the dropdown. However, it does not show the selected item, even though I have used …
John Voss
  • 107
  • 1
  • 4
1
vote
2 answers

adding every choice of Spinner to the textview

I want to create a Spinner with multiple choice, and every one that chooses, must add to the spinner box.my spinner has a dropDown List.pictures below will describe what I want to create: how can I create this Spinner???
Azin Nilchi
  • 849
  • 1
  • 10
  • 24
1
vote
0 answers

Android dropdown from a Image Button

I am trying to create a dropdown (like a spinner) which happens when you click on a imagebutton. I've tried doing this through a spinner with a background image, but it stretches the button as wide as the largest option in the dropdown menu. I want…
user2035296
  • 157
  • 1
  • 3
  • 8
1
vote
1 answer

Best way to display a loading spinner in Django?

What is the best way to display a loading spinner in Django during a relatively lengthy server-side processing task? Is this something that JS/jQuery should handle? If so, how do I get the button click that starts the server-side processing to…
user456584
  • 86,427
  • 15
  • 75
  • 107
1
vote
2 answers

How to change the EditText Hint depends upon the spinner item selection in android

I am trying to set hint in EditText according to the selection of spinner item. I have two items in my spinner. i.e KG and LBS, Now what i want to do is when i select KG in spinner then KG( Hint) should be set in the EditText or when i select LBS in…
Uzair Qaiser
  • 156
  • 1
  • 11
1
vote
0 answers

Add dynamically Spinners in list or recyclerView

I want to add n numbers of spinners in list view or recycler view for ex if n is 4 , 4 spinner should be there with different items inside them. I have tried with recycler view but as its name says it recycles view , I dont think that more view can…
dhami_ji
  • 162
  • 3
  • 12
1
vote
0 answers

Attaching a spinner widget to recycler view(Android)

I want to add multiple spinners to my recycler view, I am using parse as my backend, I have created one but this doesn't give me expected results.And I also have no idea how to do onclick if my items get listed inside a spinner Below Is My…
dhami_ji
  • 162
  • 3
  • 12
1
vote
3 answers

Spinner Crash on click

I am Using Android-Studio I was creating an app it was working fine, after few days of coding my spinner went completely broken ! .... I don't think it's because of other codes? When I Click on it app crashes... Here is my Spinner codes : …
Disco4uf
  • 147
  • 1
  • 12
1
vote
1 answer

MultiAutoCompleteTextView not showing dropdown in AlertDialog

I am using MultiAutoCompleteTextView for showing suggestions while I am typing something. I put MultiAutoCompleteTextView in an AlertDialog. Now It is not showing dropdown. My xml
noobEinstien
  • 3,147
  • 4
  • 24
  • 42
1
vote
1 answer

Android - Add a spinner on the ActionBar title

I'm willing to add a Spinner that will open when I click on the Activity's title in the ActionBar (I don't use a Toolbar, I use the support ActionBar). I tried with the method setListNavigationCallbacks(SpinnerAdapter adapter,…
1
vote
2 answers

Android: Why does my Spinner haven't got the standard design?

In my app I'm using a spinners to let the user select an item from a list. Everything works fine but I'm not really happy with the look of the spinner. As you can see in the image below it has the same design as a normal button. What I want is a…
Flo
  • 27,355
  • 15
  • 87
  • 125
1
vote
2 answers

How to implement Android Spinner from inside a Fragment view

I need to implement 3 spinner objects inside of a fragment. However, I am getting the error. I have posted the error message below. setOnItemClickListener (android.widget.AdapterView.OnItemClickListener) in Spinner cannot be applied to…
1 2 3
99
100