Questions tagged as 'spinners'

1
answer

Pass values from the database to Spinner

I'm looking for values from the clients in the database via PHP / MYSQL and I'm returning via JSON, and I'd like to pass more than 1 argument to SPINNER (idclient + nomeclient) ... In case, I was able to run the SPINNER passing the "nomecliente"...
asked by 20.07.2017 / 23:43
2
answers

Larger space between spinner items

I am creating an app that has spinner, but when opening the items are always glued together, I would like to know if only by custom spinner I can give space or is there any style / theme that already has these spaces ... as class and everything...
asked by 14.07.2015 / 20:35
1
answer

Spinner.setadapter on a null object reference [closed]

The array of players is populated with data but gives error in method setadapter . Spinner spinnerJogador1; ArrayList<JogadorModel> jogadores = jogadorRepository.SelecionarDisponiveis(); dataAdapter = new ArrayAdapter(this,...
asked by 04.07.2017 / 11:57
2
answers

onKeyDown when the Spinner is open

Hello, I'm trying to do an action when a user closes the spinner using the back button of the device. But the "onKeyDown" event does not run when the spinner is open, only if it is closed. How could you be detecting that the spinner was cl...
asked by 03.11.2016 / 19:48
1
answer

Problem adding spinner to my form

I'm developing a form where I want to add the spinner, but when I add it to the xml file, nothing appears on the screen, just the box marked as you can see below: I'vealreadyaddedmyspinneroptionstoSTRINGS.Hereismyxmlfile:<?xmlversion="1.0" en...
asked by 28.05.2016 / 04:01
0
answers

Help with Spinner - Android Studio

Hello, I need to make a function that changes the image of an ImageView, according to what you have selected in a spinner and with input data "height" and "area". I'm doing it this way and it's bugging when I click to run. Thanks for the h...
asked by 16.05.2018 / 00:52
0
answers

Spinner with SharedPreferences

Good evening. I'm trying to save the choice the user makes in Spinner in SharedPreferences, when he clicks OK, but I'm not getting it, can anyone help me? Then I want to redeem the choice made when it opens the application again and places it in...
asked by 11.04.2018 / 02:40
0
answers

theme for android spinner

Good Night! I want to define a custom theme for my Spinner since the background of the application has a dark color, I would like to set a clear color for the spinner button and for the texts, but I can not accomplish this feat by setting a them...
asked by 11.02.2018 / 00:04
0
answers

How to perform an update on a Spinner from the EditText data in Android

I have a Spinner that is being populated with SQLite data, I want to get this data, edit it and update it My method of the SpinnerDataBase class (responsible for the Spinner database) public void alteraRegistroSpinner (int id, String label)...
asked by 19.09.2017 / 21:38
1
answer

Error spinner android

The setOnItemSelectedListener method is not called. I'm trying to get an item value through spinner , but when I click on the item I want, nothing happens. I created a TAG to check if the method is being called and I got no resul...
asked by 10.09.2017 / 17:43