Android Question b4X SearchTemplate color of match text

mrossen

Active Member
Licensed User
Longtime User
Hi,

Is it possible to change the color of the text found by search in listview.

It is default red, but I would like to change it to another color.

Mogens
 

Mahares

Expert
Licensed User
Longtime User
It is default red, but I would like to change it to another color.
If you unzip the XUI Views.b4xlib and use this class: B4XSearchTemplate.bas by changing its name perhaps to : MyB4XSearchTemplate and use it in your project so it does not conflict with the built in B4XSearchTemplate.bas, you can then edit one line in the class as follows:
Change this line:
B4X:
Public TextHighlightColor As Int = 0xFFFD5C5C
to this line:
B4X:
Public TextHighlightColor As Int = xui.Color_Cyan  'highlighted color is cyan or any other color
 
Upvote 0
Top