MaterialSpinner
MaterialSpinner copied to clipboard
change text size of items
hi thank you fot this library. how i can change text size of items in this spinner?
You can create a custom theme and set it on the XML.
- On styles.xml:
<style name="spinnerTheme">
<item name="android:textColor">@color/alert</item>
<item name="android:textSize">16sp</item>
</style>
- 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"
/>
hint also changing.I want hint color grey and items color black.