在我的應用程序中,我使用的光標顏色爲EditText
。光標在HTC設備的EditText中不可見
它正在工作三星設備但在HTC One它沒有顯示。如果我將textCursorDrawable
元素設置爲null,它將顯示默認文本顏色作爲光標顏色,但我需要紅色的光標顏色。
我無法得到確切的問題。 請任何人都可以幫助我。
這是我在XML代碼EditText
:
<EditText
android:id="@+id/username_edit"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_weight="90"
android:background="@null"
android:ems="10"
android:hint="user name"
android:maxLength="60"
android:paddingLeft="5dp"
android:singleLine="true"
android:textColor="@color/black"
android:textCursorDrawable="@color/appheader_color"
android:textSize="@dimen/TextSize_medium" >
</EditText>
Android是什麼版本,您正在使用? –
爲我的應用程序我使用minsadVersion是8和最大是19 htc手機版本是4.4.2 –