I want to set the dynamic value for the spinner as its initial value..
If i set that dynamic value then, it doesn t allow me to change to another value..
The dynamic Value of spinner is "AMEX" if i want to change my value as "Discover" that is in Array value i cant ,
so pls give me solution here is my code..
spin_type = (Spinner) findViewById(R.id.Spinner_type);
adapter_type = new ArrayAdapter(Credit_Card_Main.this,android.R.layout.simple_spinner_item, array_type);
adapter_type.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spin_type.setAdapter(adapter_type);
spin_type.setOnItemSelectedListener(new OnItemSelectedListener(){
public void onItemSelected(AdapterView<?> arg0, View arg1,
int arg2, long arg3) {
spin_type.setSelection(adapter_type.getPosition(Signin.VALUE_type[selected_position]));
@Override
public void onNothingSelected(AdapterView<?> arg0) {
}
});
Thanks
Venkatesh