I have a problem with the view of the spinners in Android, the list of data that I load in the spinner is correctly ordered from the AZ but when selecting the spinner it is shown from the Z and I have to scroll the scroll view towards up.
Could you help me to show from A down?
This is how I have my code:
adtInsuredProfession = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item) {
@Override
public View getView(int position, View convertView, ViewGroup parent) {
Log.e("VALORES SPINNER ", String.valueOf(position) + " " + convertView );
View v = super.getView(position, convertView, parent);
if (position == getCount()) {
((TextView) v.findViewById(android.R.id.text1)).setText("");
((TextView) v.findViewById(android.R.id.text1)).setHint(getItem(getCount())); //"Hint to be displayed"
}
return v;
}