tiper / MaterialSpinner

Implementation of a Material Spinner for Android with TextInputLayout functionalities
Apache License 2.0
130 stars 29 forks source link

Change arrow color #14

Open enofeb opened 4 years ago

enofeb commented 4 years ago

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?

ABr751 commented 4 years ago

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

pablorodrigo commented 4 years ago

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

pablorodrigo commented 4 years ago

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"
/>
islamYMansour commented 4 years ago

`