MaterialSpinner icon indicating copy to clipboard operation
MaterialSpinner copied to clipboard

Change arrow color

Open enofeb opened this issue 6 years ago • 4 comments

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?

enofeb avatar Oct 13 '19 11:10 enofeb

Hi i need the underline to be removed from the spinner.Please help

ABr751 avatar Nov 11 '19 04:11 ABr751

I would like to know it too. How can I change the color of each row and bottomsheet?

pablorodrigo avatar Jan 23 '20 00:01 pablorodrigo

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"
/>

pablorodrigo avatar Jan 23 '20 00:01 pablorodrigo

<style name="TextLabel_white" parent="Theme.AppCompat.Light.DarkActionBar"> <!-- Label color in TRUE state and bar color FALSE and TRUE State --> <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>

islamYMansour avatar Jan 27 '20 09:01 islamYMansour