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

Loading Spinner hangs when Popup opens

I have an Apple Spinner User Control in my WPF application. Spinner created by following link. I have placed this Spinner in a Popup and show/hide based on condition. I am using MVVM and Prism. Issue : I open Popup from code behind, and spinner does…
Incredible
  • 3,495
  • 8
  • 49
  • 77
1
vote
1 answer

here is my code for spinner with dropdownlist:

I have spinner in my application .The spinner have drop down list.I want to take the value of the dropdown list from the database .how can i do this ? here is my code for spinner with dropdownlist: ArrayAdapter adapter = new…
user555910
  • 2,627
  • 6
  • 22
  • 28
1
vote
2 answers

How can I hide a spinner after a while?

I wanna put a spinner loading and after a while (about 3, 4 seconds) to hide it. How can I do it?
1
vote
0 answers

How do I change the content of my listview inside a fragment when an item in spinner is selected?

In my android app, I have a spinner and a listview. The spinner and listview data are populated by json. They are inside a fragment. My question is how do i change the content in my listview without changing the entire screen when an item in the…
orange
  • 717
  • 2
  • 6
  • 14
1
vote
1 answer

How to get text back from the android spinner?

I am creating an android spinner. It is displaying properly but nothing happens on selecting an option. Why is 'if' command not working? public class Main2Activity extends AppCompatActivity { Spinner spinner; ArrayAdapter
user7165979
1
vote
1 answer

How to save values from a spinner in sqlite database

I implemented a spinner in my Unterkunft Activity which is populated by data from sqlite database. In this activity I have a few edit texts and this spinner. I want the inserted values and the chosen value from the spinner to be saved in a database.…
ste92
  • 434
  • 9
  • 23
1
vote
1 answer

p:spinner not shown

I work with PrimeFaces 5.2. These are my maven dependencies: org.primefaces primefaces 5.2 com.sun.faces
Carlota
  • 1,239
  • 3
  • 29
  • 59
1
vote
0 answers

Error:(73, 5) error: illegal start of expression

anyone can help me? I'm amateur in android programming. that's my code: package com.example.aleta.dbapp; /** * Created by aleta on 24/07/2017. */ import java.sql.Connection; import java.sql.DriverManager; import…
1
vote
1 answer

Native Spinner Dialog (IONIC 3)

I've already used the native spinner in some older projects before and it's worked fine. However, I recently started a new IONIC's project (V.3.5.3) and It's not working properly or I'm doing something wrong. I also noticed that Ionic's Team has…
Pedro Durek
  • 303
  • 4
  • 18
1
vote
1 answer

How can I set the Spinner menu to DropDown instaed of dialog style?

I created a Spinner style file, because I'd like to have a nice looking spinner. Now if I click on the spinner i don't get anymore the default dropdown menu, but a dialog, to select an item from the spinner. How can I change it back to…
user7940193
  • 117
  • 2
  • 10
1
vote
1 answer

How to properly apply a CSS hack for IE11+

I am creating a loading spinner for my web application. It is working perfectly fine in chrome but in IE11 the CSS styles are not working. Below is the sample code for loading spinner that i am using from…
1
vote
1 answer

Not getting toast in clicking an item in spinner

public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Spinner s = new…
Ankit Srivastava
  • 135
  • 4
  • 11
1
vote
3 answers

How to change the text color of only first element of spinner?

I have to change the color of spinner first element which is displayed as the default element. Tried various methods not working. provide a working solution.
1
vote
2 answers

Dynamic update of Spinner2 based on choice in Spinner 1

In using this code (adapted from here) I get the following error: The constructor ArrayAdapter(new AdapterView.OnItemSelectedListener(){}, int, String[]) is undefined Can anyone help correct this? Thanks private void setDynamicSpinnerBE() { …
1
vote
1 answer

Populate spinner from simple cursor adapter

I have some trouble to populate spinner from sqlite database with simple cursor adapter. I must use simple cursor adapter not array adapter. My MainActivity, functions and xml files are as follows: public class MainActivity extends BaseActivity…
Worker
  • 23
  • 4
1 2 3
99
100