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
1 answer

Android Spinner Help

I'm making an android application in eclipse, but I got some issues with the spinners. First of all I would like my spinner to start on no target at all. You see when I start the application the spinner already have the first item in my list…
rosa_kanin
  • 11
  • 1
1
vote
1 answer

How to show specific data in spinner with Firebase?

My data is being retrieved, but I only want to display the names in my spinner like URL_xxx_NB or URL_xxx_FR, because I'm storing different URLs when people use the app in another language, and I need to retrieve only the names and when I put…
Gastón Saillén
  • 12,319
  • 5
  • 67
  • 77
1
vote
2 answers

Populate first spinner on the basis of second spinner

I want my page to have two spinners and want to populate the second spinner on the basis of selection of the first spinner . I took two arrays . The first array is or the 1st spinner and the three arrays are for the second spinner . On the value…
user4570754
1
vote
1 answer

performClick not working when using spinner library

I have implemented this spinner in my app. I'm displaying a dialog and I have my spinner in that dialog. I want my spinner to open as the dialog comes up. I have tried performClick() event right after setAdapter() method but it doesn't seem to…
3iL
  • 2,146
  • 2
  • 23
  • 47
1
vote
1 answer

Custom spinner control, data binding runtime crashes while setting adapter

I want to use this custom spinner with data binding, to bind entries with my list: https://github.com/miteshpithadiya/SearchableSpinner Everything works with standard spinner, sample xml layout:
user1209216
  • 7,404
  • 12
  • 60
  • 123
1
vote
1 answer

How do I make so my spinner target links to a website?

Hey, I'm really new with android development just started a few hours ago. I need to make a application for a school project and it needs to be done soon. So far have I made a spinner with some alternatives to choose from. But here is my…
Rosa_kanin
  • 21
  • 3
1
vote
4 answers

app crashes when alert dialog is open and phone(emulator) changes its orientation

guys I've been searching and studying about this for a whole day. The app crashes not only when a dialog is open, but also when a spinner is open (and I'm sure it would be bunch of other scenarios that I haven't come across). choosing between…
1
vote
1 answer

Set the imageView src based on the value selected in a Spinner

I've been trying to set an ImageView (Default empty) based on the value selected from a Spinner. So in the mainActivity.java @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …
GioCrem83
  • 27
  • 6
1
vote
1 answer

How can I fix my Spinner and move on

This is my first time but I am currently working on a Web Browser and have been trying to implement a Spinner. it has failed and when I try the app will crash so I decided to try here. I have created a new project to the spinner and even that does…
1
vote
1 answer

ArrayAdapter getItem(position) - Can i ignore this NullPointer Warning?

I built a custom ArrayAdapter to fill a Spinner. public class CountryAdapter extends ArrayAdapter { public CountryAdapter(@NonNull Context context, ArrayList countryList) { super(context, 0, countryList); …
Florian Walther
  • 6,237
  • 5
  • 46
  • 104
1
vote
2 answers

Populating a Spinner in AlertDialog

I am trying to populate a spinner in an AlertDialog using the following code: ArrayAdapter dataAdapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_item, providersList); …
1
vote
3 answers

Disabling the first item in a spinner

I want to disable first item in spinner like here: enter link description here But when I did this, like in this code my layout shows twice, one on the other. final Spinner spinner = (Spinner) findViewById(R.id.spinner); String[]…
MatL
  • 39
  • 1
  • 9
1
vote
2 answers

how to delete the particular selected item from the list of items in spinner

I followed http://www.designerandroid.com/?p=8 this one to add the values in the spinner.In it while we select the "clear spinner items" the whole events are will be delete. But i need to the selected particular item only want to delete.Any one can…
ezhil
  • 2,606
  • 7
  • 26
  • 30
1
vote
1 answer

How to remove arrow from the spinner when i click On spinner?

I tried this below code its showing normal effects.I want when i click on spinner the down should hide..
demo
  • 672
  • 3
  • 9
  • 34
1
vote
0 answers

Refreshing an activity with spinner

I have an activity with a spinner and a listView. Depending on the item selected on spinner, the list view displays different data. When i refresh im calling the method populate to make populate the activity again. The problem is that spinner will…