Change text color and text of selected item in spinner
just use this line of code in your itemselected
public void onItemSelected(AdapterView<?> parent, View arg1, int arg2, long arg3) { // TODO Auto-generated method stub item = (String) parent.getItemAtPosition(arg2); ((TextView) parent.getChildAt(0)).setTextColor(0x00000000);
((TextView) parent.getChildAt(0)).setText("Test");
}
Comments
Post a Comment