I develop an Adroid application.
So i want to customize programmatically the behavior of DropDown Spinner.
I overwrite the getDropDownView method but i cannot find anything to change the dimension of DropDown and also the alignment of it.
I only change the color of each line in DropDown like this
View view = this.getView(position, convertView, parent);
if (position % 2 == 0) {
view.setBackgroundColor(Color.YELLOW);
} else {
view.setBackgroundColor(Color.GRAY);
}
Can someone help me?
Thanks
I wait for someone to help me. Not happened. So i found a workaround. I use a TextView and on click a ListView is displayed. So if someone find a better approach, please let me know