-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to change spinner selected text color? #146
Comments
amol-bhagwat
changed the title
How to change floating label color?
How to change spinner selected text color?
Mar 14, 2019
hi, if you find the solution . please update. |
You can create new layout. For example, I named it item_spinner <?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/text1"
style="?android:attr/spinnerItemStyle"
android:singleLine="true"
android:layout_width="match_parent"
android:textColor="@color/colorAccent"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:textAlignment="inherit"/> Refrence the layout that you made to adapter val adapter = ArrayAdapter(applicationContext, R.layout.item_spinner, items)
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item) |
Hi you can try to check this library: https://github.com/Chivorns/SmartMaterialSpinner. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: