I am trying to add spinner to my action bar. I am using the cusome spinner. Here is the code.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/block" >
<Spinner
android:id="@+id/action_bar_spinner"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:gravity="center" />
</RelativeLayout>
And here is the code that I am inflating in the getView method of the SpinnerAdapter to get the custom title of the spinner. Its a Text view.
android:id="@+id/spinner_title"
style="@style/text_title"
android:layout_alignParentRight="true"
android:ellipsize="end"
android:gravity="right"
android:singleLine="true"
android:text="@string/list_header"
android:enabled="false"
Everything is working fine. But I am getting an underline below the title of the spinner and I want to change the default grey color of the triangle on the right side of the spinner title.
Please advise.