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

How to set the value and text in a Spinner from a string list?

i am working on android spinner control. i already have populate list of string to show in spinner like String[] items = new String[]{ "Office", "Home", "College", "Uncle's Home", "CoDebuggers"}; ArrayAdapter adapter = new…
Faisal
  • 584
  • 3
  • 11
  • 33
1
vote
0 answers

Scroll spinner horizontally to view long item

is there a way to make my spinner to be able to scroll horizontally? because my item is a long sentence. Below is my spinner screenshot, as you can see, it cut the last part of the item sentence.
1
vote
0 answers

How to make a spinner like html style in Android?

I have a spinner control, I wish it can be used like a html "select" control. For example, image a country select control (in html), populated with a countries code array and countries name array. I wish this behavior because, countries code will…
Israel
  • 3,252
  • 4
  • 36
  • 54
1
vote
2 answers

OnClickItemListener in spinner in recycler view android

I create item, where I have only spinner: class ItemSelect constructor(val list: ArrayList) : AbstractItem() { override fun getType(): Int { return R.id.itemSpinner } override fun…
edi233
  • 3,511
  • 13
  • 56
  • 97
1
vote
0 answers

Select item in Spinner, parse a XML and pick a value - Android Studio

I'm going to explain you my problem.. I have an Android Studio's layout with 2 spinners, both of them have these values: "EUR","USD","GBP","CAD" I'm using this website: https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml to get the…
Kmikeze
  • 21
  • 2
1
vote
4 answers

Change background and item color of a spinner

Does anyone know how I can change the background color and the item color on the spinner?
Tuan
  • 2,033
  • 1
  • 9
  • 16
1
vote
2 answers

React Spinner Loading Animation / View without State?

I have a component and need to wait for the component to mount properly. Until then, I would like to show a loading animation. How could I do this in React? I would like to do this without state, as I have many stateless components that will need…
George Welder
  • 3,787
  • 11
  • 39
  • 75
1
vote
2 answers

Change popupbackground color of dialog spinner

I want to change popupBackground color of my dialog spinner. In my activity.xml :
Chris
  • 73
  • 1
  • 10
1
vote
1 answer

How can i get the ID selected from my spinner with data from mysql

Hello everybody im new on android and i'm having a problem getting the "id" from my spinner loaded from mysql. the thing is i need an specific "id" depending on which option i selected, the info its loading well but i dont know how to get that id.…
user8793330
1
vote
0 answers

Spinner not working properly in android

I am having problem with the spinner dropdown when the value of first spinner has inserted into second spinner. The value have been stored in sqlite db. What I want to do is two button spinner come out with different values from db. Im not sure how…
norafiqa
  • 11
  • 5
1
vote
1 answer

multiple spinner but one in xml

Hi please look at my xml file, very straight and simple, one textView and one Spinner
Varand Pezeshkian
  • 520
  • 2
  • 11
  • 22
1
vote
2 answers

ASP.NET MVC relative path for a jQuery spinner image

In an ASP.NET MVC project I'm trying to use jQuery spinner plugin. All's working fine except the following problem: an animated spinner.gif is shown only if I use an absolute path to the image as a custom parameter. In a jquery.spinner.js script…
rem
  • 16,745
  • 37
  • 112
  • 180
1
vote
1 answer

Android - spinners inside a ListView

i have a ListView with a custom Servizio object in every row. I'm using SimpleAdapter for this and it's ok. The problem is that i can't fill the spinner inside every Servizio. This code inside Servizio.java is causing my app to crash: Spinner…
Abramodj
  • 5,709
  • 9
  • 49
  • 75
1
vote
1 answer

Android Firestore spinner not loading my document

So, I assigned my var spinner array to go fetch data from my document in firestore, but this is the I get. This is my current activity. I can make it work if I assign strings, but ultimately i want to load data from my Documents like I am trying to…
AndyFire
  • 11
  • 3
1
vote
1 answer

How to order data from firebase database in a spinner?

I have a firebase database that has a name and number in it for each of my stores. I want a spinner to show the names of each store so we can select one. the store name example is "0023 franklin", and i want to order them by the number. my code to…