Disable EditText Cursor Android


In order to disable EditText (TextFileds) Blinking Cursor in your Android Activity you can either add a line of code in your activity layout.xml file or in the Activity Java Class file.

To Hide EditText Cursor and the below line in Layout.xml,

android:cursorVisible="false"

Example:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" >
    <EditText
        android:id="@+id/editText1"
        android:layout_width="match_parent"
        android:layout_height="55sp"
        android:layout_margin="4dp"
        android:cursorVisible="false"
        android:ems="10"
        android:inputType="textPassword" >
        <requestFocus />
    </EditText>
</LinearLayout>