Open enofeb opened 4 years ago
Hi i need the underline to be removed from the spinner.Please help
I would like to know it too. How can I change the color of each row and bottomsheet?
I found it. You just need to create your own layout and set in your adapter as below:
adapter.setDropDownViewResource(R.layout.YOUR_LAYOUT)
My code:
<?xml version="1.0" encoding="utf-8"?>
<CheckedTextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/text1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?android:attr/listPreferredItemHeight"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="@color/textColor"
android:background="@color/background"
android:gravity="center_vertical"
android:paddingStart="12dip"
android:paddingEnd="7dip"
android:ellipsize="marquee"
/>
`
<item name="android:textColorHint">#E9BD7E</item>
<item name="colorAccent">@color/white</item>
<item name="colorControlNormal">@color/white</item> // change color of the arrow and underline
<item name="colorControlActivated">@color/white</item>
</style>`
Altough I used android:src="@drawable/ic_selector_drawable" , arrow color doesnt change.I would like to change default color but it is always black.Even if click the spinner,arrow color change but it is white.How to manage it?