본문 바로가기

무한코딩/안드로이드 어플리케이션

[안드로이드]EditText 커서 및 밑줄 수정


<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:maxHeight="400dp"
android:textColor="#00ff00"
android:id="@+id/free_make_content"
android:hint="내용을 입력해 주세요."
android:textCursorDrawable="@null"

/>



textCursorDrawable null을 주고 textcolor를 입력하면 커서와 text의 색깔이 바뀝니다.


밑줄의 색깔은 values - color.xml에 있는 값중



<color name="colorAccent">#000000</color>



에서 '#000000'부분을 수정하면 됩니다.