Questions tagged as 'spinner'

1
answer

Load Spinner with SQLite Android database

Hello, I need help to load a spinner from a database as easily as possible. I have a class where doing all sorts of methods would ideally be that from the activity call those methods and load the spinner. public ArrayList getAllClientes() {...
asked by 27.10.2017 / 20:23
1
answer

Load Spinner from sqlite Android database

Dear, I am uploading a Spinner with information obtained from a table of database SQLite of android, I have no problems in loading the Spinner , but if at the time of obtaining the selected data and store it in another databa...
asked by 25.08.2017 / 15:50
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

Spinner with an initial text

Cordial greeting, by means of a query to a page: http://localhost/baradm/ubica.php?id=002 I get the answer .json: [{"DESCRP":"MESA 01"},{"DESCRP":"CUARTO 01"},{"DESCRP":"CUARTO 02"}] This I have uploaded to a Spinner: And I wi...
asked by 17.03.2017 / 10:35
1
answer

Does Spinner OnItemSelectedListener not work?

As such, it does run, but the if and else if statements do not run and I can not find a solution to debug public class MainActivity extends AppCompatActivity implements AdapterView.OnItemSelectedListener { boolean IntersticialBoolean = true;...
asked by 03.12.2017 / 05:43
2
answers

Custom Spinner does not show full letter

good to everyone! I have a problem with the graphic appearance of the application. I have put two spinners, and I have put the letter of the same ones bigger by means of a layout with a TextView where I put the characteristics that I want...
asked by 27.10.2017 / 21:44
1
answer

how to put a JSON in a Spinner?

I bring my json from a php and I pass it as string to my activity class via onPostExecute from AsyncTask : public String doInBackground(String... params) { String type = params[0]; String registro_url = "http://...
asked by 17.12.2017 / 22:48
2
answers

event onclick on a spinner

I'm doing an activity that uses a spinner to enable several options but within the spinner I want to put an event onclick to communicate with a button in the activity and this performs an operation. This is the code. pu...
asked by 13.05.2017 / 05:17
1
answer

Assign an intent to each item of a spinner

Good, I have a spinner with the following values: Teacher and Student, my question is, how do I do it so that if the person chose Professor of the spinner direct him to a activity , but if you chose Student from spinner add...
asked by 14.11.2017 / 06:04
1
answer

Spinner functions you can do

I want to use a Spinner but I need the option in the Spinner list that I tap to load another list of options in the same Activity . Example of what I'm looking for: Spinner 1______ opción 1_____...
asked by 26.12.2017 / 21:14