MaterialSpinner icon indicating copy to clipboard operation
MaterialSpinner copied to clipboard

change text size of items

Open mehrdadmmb2 opened this issue 7 years ago • 2 comments

hi thank you fot this library. how i can change text size of items in this spinner?

mehrdadmmb2 avatar Feb 18 '18 10:02 mehrdadmmb2

You can create a custom theme and set it on the XML.

  1. On styles.xml:
<style name="spinnerTheme">
        <item name="android:textColor">@color/alert</item>
        <item name="android:textSize">16sp</item>
</style>
  1. On spinner xml:
<com.jaredrummler.materialspinner.MaterialSpinner
                            android:id="@+id/spinnerInstallmentSales"
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:layout_marginStart="16dp"
                            android:layout_marginTop="16dp"
                            android:layout_marginEnd="16dp"
                            android:layout_marginBottom="16dp"
                            android:theme="@style/spinnerTheme"
                            />

Geraldo-Neto avatar Sep 10 '20 19:09 Geraldo-Neto

hint also changing.I want hint color grey and items color black.

Manli123 avatar Jul 06 '23 10:07 Manli123