edittextカーソルが点滅しない問題
2934 ワード
AutoSizeを使用して画面を合わせると、EditTextがフォーカスを取得した後、点滅するカーソルがないことがわかります.各種の調査でAutoSizeを削除すればいいことがわかりました.densityが修正した後に影響した可能性があります.
解決策:EditTextは次の2つの属性を追加します.
解決策:EditTextは次の2つの属性を追加します.
android:cursorVisible="true"
android:textCursorDrawable="@null"
<EditText
android:id="@+id/et_account"
android:layout_width="match_parent"
android:layout_height="66.67dp"
android:layout_marginLeft="26dp"
android:layout_marginTop="290dp"
android:layout_marginRight="26dp"
android:background="@null"
android:cursorVisible="true"
android:drawableLeft="@mipmap/ic_iphone"
android:drawablePadding="13dp"
android:hint=" "
android:textColor="@color/white_ffffff"
android:textColorHint="@color/white_1affffff"
android:textCursorDrawable="@null"
android:textSize="21sp" />