Saqi

Saqi

  • NA
  • 63
  • 122.3k

How to Re-show item into Spinner

Jul 26 2012 3:59 PM
I have already items store in my Spinner combobox .
i saved one of them item into database .
now i am trying to retrieve data from database to specific their places
successful to get data into edittext checkbox but fail to get item into spinner as Re-show which is already added just i want show that what was i saved How ?

my spinner already have items:

String[] items1 = new String[] {"     ","Solteiro","Viuvo","Seprado","Casado","Divorciado"};
final Spinner estado = (Spinner)findViewById(R.id.estado_civil);
ArrayAdapter<String> adapter1 = new ArrayAdapter<String>(this,
android.R.layout.simple_spinner_item, items1);
adapter1.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
estado.setAdapter(adapter1);



Answers (1)