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>
Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!