David Hawkins Active Member Licensed User Longtime User Mar 31, 2014 #1 Is it possible to change the color of the cursor in an editbox
mangojack Well-Known Member Licensed User Longtime User Mar 31, 2014 #2 David .. Have a read Here ... Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Mar 31, 2014 #3 It is only possible if you define the EditText with XML and then load it with XmlLayoutBuilder library. Note that if you use the DEFAULT color in the designer then the cursor color should match the selected theme. Upvote 0
It is only possible if you define the EditText with XML and then load it with XmlLayoutBuilder library. Note that if you use the DEFAULT color in the designer then the cursor color should match the selected theme.
David Hawkins Active Member Licensed User Longtime User Mar 31, 2014 #4 Thanks guys for your speedy response It gives me a very good start Many regards Upvote 0
J jairbj Member Licensed User Longtime User Jul 4, 2015 #5 Erel said: It is only possible if you define the EditText with XML and then load it with XmlLayoutBuilder library. Note that if you use the DEFAULT color in the designer then the cursor color should match the selected theme. Click to expand... How to change the DEFAULT color in the designer? Upvote 0
Erel said: It is only possible if you define the EditText with XML and then load it with XmlLayoutBuilder library. Note that if you use the DEFAULT color in the designer then the cursor color should match the selected theme. Click to expand... How to change the DEFAULT color in the designer?
Erel B4X founder Staff member Licensed User Longtime User Jul 5, 2015 #6 You cannot change the default color. Upvote 0
gareththomasnz Member Licensed User Longtime User Oct 3, 2015 #7 what about this library - does it stil work ? https://www.b4x.com/android/forum/threads/change-edittext-cursor-color.58876/ Upvote 0
what about this library - does it stil work ? https://www.b4x.com/android/forum/threads/change-edittext-cursor-color.58876/
DonManfred Expert Licensed User Longtime User Oct 3, 2015 #8 gareththomasnz said: what about this library - does it stil work ? Click to expand... i´ve tried this library with my device, a S6 Edge, and it works for me. Upvote 0
gareththomasnz said: what about this library - does it stil work ? Click to expand... i´ve tried this library with my device, a S6 Edge, and it works for me.
gareththomasnz Member Licensed User Longtime User Oct 10, 2015 #9 Can you please explain what to put in the XML - say if I want a blue cursor for example Upvote 0
JonPM Well-Known Member Licensed User Longtime User Oct 10, 2015 #10 Did you try the library? It works great Upvote 0
gareththomasnz Member Licensed User Longtime User Oct 11, 2015 #11 I am asking - do i need to change something in the xml to make the cursor the color i want? Upvote 0
JonPM Well-Known Member Licensed User Longtime User Oct 11, 2015 #12 Sorry I was referring to this library: https://www.b4x.com/android/forum/threads/change-edittext-cursor-color.58876/ Upvote 0
Sorry I was referring to this library: https://www.b4x.com/android/forum/threads/change-edittext-cursor-color.58876/
gareththomasnz Member Licensed User Longtime User Oct 11, 2015 #13 My mistake I see above the picture now - it does not go in the XML Upvote 0
DonManfred Expert Licensed User Longtime User Oct 11, 2015 #14 gareththomasnz said: I am asking - do i need to change something in the xml to make the cursor the color i want? Click to expand... No xml editing needed... B4X: Dim views As ViewSetting views.setCursorDrawableColor(txtusername,Colors.Blue) Upvote 0
gareththomasnz said: I am asking - do i need to change something in the xml to make the cursor the color i want? Click to expand... No xml editing needed... B4X: Dim views As ViewSetting views.setCursorDrawableColor(txtusername,Colors.Blue)