Daiwik Daarun
Daiwik Daarun

Reputation: 3974

What is the name of the EditText selector, and how do you change it? (picture included)

What is the name of the blue view in the picture below?

Cursor Selector

I have tried searching "EditText cursor" and "EditText selector", but I am unable to find a name for this drawable.

Also, is it possible to change this drawable?

Upvotes: 1

Views: 483

Answers (1)

CarCzar
CarCzar

Reputation: 160

It is called the Text Select Handle. You can customize it with this handy tool. http://android-holo-colors.com/

in your theme add something like:

<?xml version="1.0" encoding="UTF-8"?>

<!-- Generated with http://android-holo-colors.com -->
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<style parent="@style/_AppTheme" name="AppTheme"/>
<style parent="android:Theme.Holo.Light" name="_AppTheme">
    <item name="android:textSelectHandleLeft">@drawable/apptheme_text_select_handle_left</item>
    <item name="android:textSelectHandleRight">@drawable/apptheme_text_select_handle_right</item>
    <item name="android:textSelectHandle">@drawable/apptheme_text_select_handle_middle</item>
</style>
</resources>

edit: spelling

Upvotes: 1

Related Questions