Marcel
Marcel

Reputation: 927

Android - how to disable / change editTexts 'Pin'

How can I edit or disable the 'pin' for editTexts that appears when marking text? I was able to edit the underline & the cursor, but not that 'pin' because I didn't know how to call it. Image of the pin (pink) added. pink pin of editText

Upvotes: 2

Views: 640

Answers (3)

Sreehari
Sreehari

Reputation: 5655

Add these drawables with customized design/color to your drawable folder and add to style

<style name="MyTheme" parent="@style/MyCustomTheme">
        <item name="android:textSelectHandle">@drawable/text_select_handle_middle</item>
        <item name="android:textSelectHandleLeft">@drawable/text_select_handle_left</item>
        <item name="android:textSelectHandleRight">@drawable/text_select_handle_right</item>
</style>

Upvotes: 1

drWisdom
drWisdom

Reputation: 512

This 'pin' is called "text select handle" To change it you need to use these attributes: text_select_handle_left and text_select_handle_right

Upvotes: 1

Shashank Udupa
Shashank Udupa

Reputation: 2223

I think the colourAccent influences the colour of that pin, try changing the colour of colourAccent in color.xml

Upvotes: 2

Related Questions