2016-09-28 2 views
0

EditText를 터치하면 가상 키보드가 열리고 텍스트를 편집 할 수는 있지만 다음 문자가있는 위치를 알려주는 커서가 없습니다. EditText를 터치하거나 EditText를 터치했습니다.EditText에 커서가 없습니다.

코드는 다음과 같습니다

<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" /> 

내가 무슨 일을 했는가 또는 내가 추가해야합니까?

+0

어떤 테마를 사용하고 있습니까? – Shaishav

+3

'Caret','Cursor'는 * 수직선의 단어입니다. * :) –

+0

나는 @ style/Theme.AppCompat.Light.NoActionBar 테마를 사용합니다. android : cursorVisible = "true"가 작동하지 않아 캐럿에 대한 사용법이 없습니다. – Ran

답변

2

android : textCursorDrawable 속성을 @null로 설정하면 android : textColor를 커서 색상으로 사용해야합니다.

작동 가능

+0

android : cursorVisible = "true"를 지정한 후에도 그렇지 않습니다. – Ran

+0

내 편집 된 코드를 확인하십시오. @Ran 당신에게 유용 할 것입니다. –

관련 문제