how to change the text color of the spinner, the text which is on the left side of the dropdown button? ("Denmark" in the picure)
You have to try like this
public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) {
TextView selectedText = (TextView) parent.getChildAt(0);
if (selectedText != null) {
selectedText.setTextColor(Color.RED);
}
}