If you have an EditText
, clicking it will show a Bubble Cursor. I show a picture below (using Twitter app as example)...
My question is:
EditText
? (or from our entire Activity/Fragment/App)It's called text select handle.
There is a tricky way to hide it: replace with an 0px transparent drawable in your style.xml.
drawable/zero_px_transparent.xml
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
<size android:height="0dp" android:width="0dp"/>
</shape>
And modify your style.xml:
<style name="CustomTheme" parent="@android:style/Theme.Holo.Light">
<item name="android:textSelectHandleLeft">@drawable/zero_px_transparent</item>
<item name="android:textSelectHandleRight">@drawable/zero_px_transparent</item>
<item name="android:textSelectHandle">@drawable/zero_px_transparent</item>
</style>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With