How do I change the color of the cursor in EditText?

Asked 2 years ago, Updated 2 years ago, 132 views

I applied the Android Holo theme to make an app for Galaxy Tab. So, the background of Fragment became white. The problem is that the same theme was applied to EditText in the fragment, so the color became white because it was big. The screen is white and the color is white, so I can't see it because it's white.

Can't you change the color of EditText's cursor to darken? Go to EditText Properties I've tried "@android:style/Widget.Holo.Light.EditText" but it's no use.

android android-edittext style galaxy-tab

2022-09-22 12:17

1 Answers

Give android:textCursorDrawable to @null in EditText properties. The textCursorDrawable property was created from API level 12.


2022-09-22 12:17

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.