1

When I touch my EditText, the virtual keyboard opens and I can edit the text, but I have no cursor that tells me where the next char would be, and no blue rectangular shape that would tell me if I touched the EditText or what EditText was touched.

The code is:

 <EditText
        android:id="@+id/search_edit_text"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="#FCFCFC"
        android:hint="\?"
        android:inputType="text"
        android:text=""
        android:textColor="#000000"
        android:textSize="24sp" />

What did I do wrong or what do I need to add?

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
Ran
  • 657
  • 2
  • 13
  • 29

1 Answers1

2

Setting the android:textCursorDrawable attribute to @null should result in the use of android:textColor as the cursor color.

it will work

Mohit Trivedi
  • 699
  • 3
  • 13