Flashing cursor color

Dman

Active Member
Licensed User
Longtime User
I like the way an app lays out using the targetSdkVersion="14"/ line in the xml file but if I have a light colored background, the flashing cursor in the edittext boxes is white and very hard hard to see since there really isn't a "box" per se.

Is there a way to change the flashing cursor to black without changing the sdkversion number?
 

Mahares

Expert
Licensed User
Longtime User
One way to enhance your edittext boxes when they have focus is to do the following:
Suppose you have several edittext boxes with the same EventName called: Dman, your code can be:
B4X:
Sub Dman_FocusChanged(Hasfocus As Boolean)
   Dim Send As EditText
  Send=Sender
  If Hasfocus=True Then
    Send.Color=Colors.Cyan
  Else
     Send.Color=Colors.White
  End If
End Sub
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…