2017-04-09 20 views

答えて

0

カーソルの色としてandroid:textColorを使用することになるはずである@nullするandroid:textCursorDrawable属性を設定します。

か、この

<style name="AppTheme.EditText" parent="@style/Widget.AppCompat.EditText"> 
    <item name="android:textColor">@color/white</item> 
    <item name="android:textColorHint">#8AFFFFFF</item> 
    <item name="android:background">@drawable/edit_text_background</item> // background (bottom line at this case) 
    <item name="android:textCursorDrawable">@color/white</item> // Cursor 
    <item name="android:textSelectHandle">@drawable/my_white_icon</item> // For pointer normal state and copy text state 
    <item name="android:textSelectHandleLeft">@drawable/my_white_icon</item> 
    <item name="android:textSelectHandleRight">@drawable/my_white_icon</item> 
</style> 

のように見えるスタイルを使用することができますが、それは

+0

は、あなたの答えをありがとう助けを願って、私の代わりにこれを使用するために管理:カラー/ colorPrimary @<項目名=「colorControlActivated」> styles.xml内の この方法では、アイコン自体を変更する必要はありませんが、あなたの返信のおかげで、今ではアイコンを変更する方法を学びました。 :) – Blazko

関連する問題