setCursorVisible (boolean visible)/android:cursorVisible - Make the Cursor Invisible in a TextView

How to Make the Cursor Invisible in a TextView using setCursorVisible

setCursorVisible (boolean visible) was added in API Level 1
android:cursor was added in API Level 1

Makes the cursor visible (the default) or invisible. Note that this property only makes sense for editable TextView.
Aka, How to hide the cursor


2. In the MainActivity.java file, add the below line to the onCreate method.

myTextView.setCursorVisible(false);   


3. Compile and run!

Related Articles:
Resources: