My spinner is defined like this and it seems android:divider="#66BC31" has no effect, i still get white divider:
<Spinner
android:id="@+id/spinner"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="15dip"
android:layout_marginBottom="15dip"
android:layout_marginLeft="10dip"
android:layout_marginRight="10dip"
android:textColor="#ffffff"
android:divider="#66BC31"
android:background="@drawable/spina" />
This is my code where i change my spinner font and select resource for dropdown:
ArrayAdapter<String> adapter = new ArrayAdapter<String>(Roaming.this,
R.layout.roaming_spinner, data) {
public View getView(int position, View convertView, ViewGroup parent) {
View v = super.getView(position, convertView, parent);
Typeface externalFont = Typeface.createFromAsset(getAssets(),
"fonts/HelveticaNeueLTCom-Lt.ttf");
((TextView) v).setTypeface(externalFont);
return v;
}
public View getDropDownView(int position, View convertView,
ViewGroup parent) { // we need this so we can use custom
// font for spinner (open)
View v = super.getDropDownView(position, convertView, parent);
Typeface externalFont = Typeface.createFromAsset(getAssets(),
"fonts/HelveticaNeueLTCom-Lt.ttf");
((TextView) v).setTypeface(externalFont);
return v;
}
};
adapter.setDropDownViewResource(R.layout.roaming_spinner_row);
I also tried adding line android:divider="#66BC31" to roaming_spinner_row.xml and roaming_spinner.xml where text size and color for my closed and opened spinner are declared and again with no success.