EditText 에서 커서 를 표시 하지 않 는 세 가지 방법 을 해결 합 니 다(요약)
1、Edittext 에 다음 속성 추가
android:cursorVisible="true"
android:textCursorDrawable="@null"
2、Edittext 에 다음 속성 추가
android:cursorVisible="true"
android:textCursorDrawable="@drawable/test_cursor"
drawable
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<size android:width="1dp" />
<span style="font-family: Arial, Helvetica, sans-serif;">
<!-- --></span>
<solid android:color="#008000" />
<!-- -->
</shape>
3、이상 효과 가 없 으 면 이 걸 사용 하 세 요EditText 의 input Type 속성 값 을 명 확 히 지정 합 니 다 input Type 속성 중의 textCapSentences
이 걸 쓰 지 마 세 요.국내 핸드폰 은 이 걸 쓰 지 않 은 것 같 아 요.개인 적 으로 확인 할 뿐 이에 요.text 나 textMultiLine 으로.
android:inputType="text|textMultiLine"
이상 의 이 편집 텍스트 가 커서 를 표시 하지 않 는 세 가지 방법(요약)은 바로 편집장 이 여러분 에 게 공유 한 모든 내용 입 니 다.여러분 께 참고 가 되 고 저 희 를 많이 사랑 해 주 셨 으 면 좋 겠 습 니 다.
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
matplotlib 마우스를 그리는 십자 커서의 실현 (사용자 정의 방식, 공식 실례)matplotlib는widgets 모듈에서 커서 생성을 지원하는 Cursor 클래스를 제공합니다.또 정부는 사용자 정의 십자 커서의 실례를 제공했다. widgets 모듈 Cursor 클래스 원본 사용자 정의 십자 커...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.