如何在EditText中添加闪烁的光标。

4
我的EditText代码如下:
  <EditText
            android:layout_width="fill_parent"
            android:layout_height="0dp"
            android:id="@+id/et_report_text" android:textColor="#414141"
            android:layout_weight="1.6" android:layout_marginLeft="12dp" android:layout_marginRight="12dp"
            android:textSize="12dp" android:gravity="left|bottom"
            android:background="@drawable/apptheme_edit_text_holo_light" android:layout_marginTop="2dp" android:layout_marginBottom="4dp"

            />

但是它上面没有光标,我尝试添加android:cursorVisible="true"但是没有帮助我。

2个回答

3

尝试使用 android:textCursorDrawable="@null" 这个代码。


0

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接