I am using B4XSearchTemplate and I would like to change the text color of the items.
Would I use B4XSearchTemplate.GetPanel?
Is there an example somewhere on the forum (I've searched) because Im looking through all the functions of B4XSearchTemplate but cannot see how I can change the text color.
I don't want to change ALL of the item text color, just a few particular ones.
I don;t think you can short of perhaps changing the class code. But if I am mistaken, Erel or someone else will intercept my answer:
I was thinking that using a CSBuilder maybe, but Erel confirms in his thread that: Out of the box B4XSearchTemplate works with a list of strings.
See post 2 here: https://www.b4x.com/android/forum/t...olor-names-and-color-palettes.117660/#content
Well this template has a srch.CustomListView1
After you set the items, you maybe able to change the text colors of particular CLV items before showing the dialog.
Do you have some example code to change the textcolor? I don't want to change all of the text color through the "DefaultTextColor", only for some of the items.
I've search the forum but nothing came up.
Is possible change the background color, and text color from list options inside of dialog options ? i use that for change some colors, but i dont see where can i change from the list . . . Dialog.Initialize(Activity) Dialog.BlurBackground=True...
www.b4x.com
Based on what you said here about using csbuilder, I tried it but the textcolor is not affect.
B4X:
Dim cs As CSBuilder
cs.Initialize.Append("Test Text").Color(Colors.Red).PopAll
MyB4XListTemplate.Options.Add(cs)
Are you using a B4XSearchTemplate? Then as above #2 and #4: NO.
The reason is that the list is changed internally by the search process, and you don't have access to that process.
Are you using a B4XSearchTemplate? Then as above #2 and #4: NO.
The reason is that the list is changed internally by the search process, and you don't have access to that process.
Well, that did it...
Thank you. I will just use B4XListTemplate for now if I need to customize the item text color and SearchTemplate for long list that needs searching