我的應用中的EditTexts出現問題。 當我開始輸入它們或當我觸摸它們時,EditText底部的行和光標變得不可見。爲什麼當我觸摸它時,我的Edittexts消失了所有內容
任何人都知道爲什麼會發生這種情況? XML爲EditText:
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:inputType="numberSigned"
android:ems="5"
android:id="@+id/etotp"
android:textSize="25sp"
android:layout_below="@+id/tvmobilenum"
android:layout_centerHorizontal="true"
android:gravity="center_horizontal"
android:maxLength="5"
android:cursorVisible="true"
android:textCursorDrawable="?attr/colorPrimary"
android:layout_marginTop="25dp"
/>
請幫助某人?
現在是更好的...機器人:textCursorDrawable應該是沒有繪製也它不工作不色 – Selvin
@Selvin。 – Panda