Questions tagged as 'android-spinner'

1
answer

Populate Spinner from SQL

Hello, I need to load a Spinner with the data coming from my Database (SQL). For this I have created a class with an id and a description. The problem is that instead of showing the description, in the Spinner the name of the packa...
asked by 02.03.2018 / 14:43
1
answer

Android Spinner: Customize DropDown color

I need to customize the background color of a DropDown, until I get to do this: if possible try to give rounded edges and have the same color as the background TextViews (As you can see the background is white), to get to do that, this...
asked by 19.07.2018 / 02:53
1
answer

How can I send the product id by selecting the name of the product on the spinner?

How can I make a spinner show the names of x products of a JsonObject that at the time I select, instead of sending me the name that I send the id of that product. So I put what I want to show private void getCategori(JSONObje...
asked by 09.08.2018 / 21:57
1
answer

Error creating a spinner in Android Studio

When trying to create a Spinner with its adapter and data already created it gives me an error of NullPointerException , and I do not know where it is given that everything is created. public class PartidaActivity extends AppCompa...
asked by 10.06.2018 / 22:04
2
answers

Show Selected item of a dynamic spinner with a Toast on android

I have a text edit and a button that add values to an adapter and it is shown in a listView and a spinner, I want to show in a message the selected element, here my code: public class MainActivity extends Activity { EditText txt; Butto...
asked by 14.04.2018 / 21:46
1
answer

Problems with Spinner setOnItemSelectedListener

I have a Spinner with a custom adapter. When giving on a number the setOnItemSelectedListener does not answer me, I think the problem is the focus that goes to my custom adapter and I do not know how to deactivate that, if someone helps me by fa...
asked by 17.07.2018 / 22:51
1
answer

How can I load the spinner after they finish all the get reponse of androidnetworking?

What happens is that I am using the FastAndroidNetworking library and when I perform a get to load the local database (I am using ROOM), it ends after I load the spinner (I am using the MaterialSpinner), in what way I can tell the spinner to wai...
asked by 16.07.2018 / 18:44
1
answer

How do I load the content of a Spinner into a TextView?

What I want to do is that when I load the content that exists inside the Spinner I am loaded in a textview, this is the code where all the data of the spinner is executed, as extra data is connected to a MySQL database. class DataParser : Asyn...
asked by 09.07.2018 / 07:20
0
answers

How do I compare the values I have in a Spinner in Android C #?

What happens is that I have more than one Spinner in my project, three to be specific, and I want to compare it so that when they have the same values I get a normal message saying that I select different values sp = FindViewById<Spi...
asked by 06.07.2018 / 22:58
1
answer

Data of a Spinner between activities

I would like to know how to make a Spinner reload the data I had when I come back from another Activity . That is, I have a Activity 1 with a Spinner and a button to go to Activity 2 , in that Activity 2 t...
asked by 05.06.2018 / 08:12