So I changed the style of the Holo Theme with the Holo Colors Generator and Action Bar Style Generator to my own color. But when I select text inside an edit text, the "markers" at the selected positions are still blue. How can I change it?
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
In order to change the color of select handles, you have to override the activated color in your app theme:
I recognize this is really late, but if all you want to do is change the color of the handle, you just need to add the following to your styles.xml file.
And then just set the theme on whatever activity is holding the
EditText
which you want to affect.Or if you want to set it app-wide, you can do the following:
And set that theme for the whole app.
Problem solved!
The worst part here was to find the "name" for this item and how it is called inside the theme. So I looked through every drawable in the android SDK folder and finally found the drawables named "text_select_handle_middle", "text_select_handle_left" and "text_select_handle_right".
So the solution is simple: Add these drawables with customized design/color to your drawable folder and add them to your theme style definition like:
You can see these attributes in http://androiddrawables.com/Other.html.
Change your values/styles.xml, for instance:
where @color/cursor is added in values/color.xml. After that apply the style to the activity:
Visit How to change EditText pointer color (not cursor) for other solutions.