Change Edittext Cursor Color

Blue.Sky

Active Member
Licensed User
Longtime User
Hi to all
I make a library that you can change cursor color of edittext
If this library is useful then like me :)
B4X:
Dim views As ViewSetting
views.setCursorDrawableColor(txtusername,Colors.Red)

Screenshot :
2d2gec5.png
 

Attachments

  • Archive.zip
    1.7 KB · Views: 982
Last edited:

ArminKH

Well-Known Member
it's better if u can attach screenshots
i don't test it yet
but any way thank u for sharing
 

JonPM

Well-Known Member
Licensed User
Longtime User
I can't test right now but thank you! I've been needing this. Any specifics we need to know about (min API level, etc)?
 

Blue.Sky

Active Member
Licensed User
Longtime User
I can't test right now but thank you! I've been needing this. Any specifics we need to know about (min API level, etc)?
I attach screenshot
 

JonPM

Well-Known Member
Licensed User
Longtime User
Working good on my HTC M9 with Android 5.1. Thanks! Do you know if there is a minimum API level required?
 

Blue.Sky

Active Member
Licensed User
Longtime User
Working good on my HTC M9 with Android 5.1. Thanks! Do you know if there is a minimum API level required?
Yes,It is not working in api < 11
 

Blue.Sky

Active Member
Licensed User
Longtime User
Working good on my HTC M9 with Android 5.1. Thanks! Do you know if there is a minimum API level required?
I forgoted,but i think api 9 is default
 

Roger Daley

Well-Known Member
Licensed User
Longtime User
Sorry Blue Sky,

It doesn't work on my Note 3. Tried different colours, even Transparent, no difference.

A fatter cursor would probably help more that a colour change. Just a thought.

Regards Roger
 

Bel

Member
Licensed User
Sorry Blue Sky,

It doesn't work on my Note 3. Tried different colours, even Transparent, no difference.

A fatter cursor would probably help more that a colour change. Just a thought.

Regards Roger
What's your android version?
 
Top