Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add blinking cursor to editText

My EditText code is:

  <EditText
            android:layout_width="fill_parent"
            android:layout_height="0dp"
            android:id="@+id/et_report_text" android:textColor="#414141"
            android:layout_weight="1.6" android:layout_marginLeft="12dp" android:layout_marginRight="12dp"
            android:textSize="12dp" android:gravity="left|bottom"
            android:background="@drawable/apptheme_edit_text_holo_light" android:layout_marginTop="2dp" android:layout_marginBottom="4dp"

            />

But there are no cursor on it, i try to addandroid:cursorVisible="true"but it did not help me.

like image 617
Kostya Khuta Avatar asked Sep 03 '25 04:09

Kostya Khuta


1 Answers

Try this android:textCursorDrawable="@null"

like image 192
JaKoZo Avatar answered Sep 06 '25 00:09

JaKoZo