简体   繁体   English

Android-如何禁用/更改editTexts'Pin'

[英]Android - how to disable / change editTexts 'Pin'

How can I edit or disable the 'pin' for editTexts that appears when marking text? 如何在标记文本时编辑或禁用显示文本的“ pin”? I was able to edit the underline & the cursor, but not that 'pin' because I didn't know how to call it. 我可以编辑下划线和光标,但不能编辑“ pin”,因为我不知道如何调用它。 Image of the pin (pink) added. 添加了图钉(粉红色)的图像。 editText的粉红色别针

我认为colourAccent影响该引脚的颜色,请尝试在color.xml中更改colourAccent的颜色

此“图钉”称为“文本选择手柄”。要对其进行更改,您需要使用以下属性: text_select_handle_lefttext_select_handle_right

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>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM