Android Question Bold Text In Combobox

Terradrones

Active Member
Licensed User
Hi All

I have asked it before and received a reply, but I forgot the reply!

I try to use Bold text throughout my surveying program and would like to show the items in the Combobox also as Bold.

Any help please?
 

Mahares

Expert
Licensed User
Longtime User
I try to use Bold text throughout my surveying program and would like to show the items in the Combobox also as Bold.

You probably used CSBuilder. It is one way to do it:
B4X:
Dim lstItems As List
    lstItems.Initialize
    lstItems.AddAll(Array As String("Pretoria", "Johannesburg", "Durban"))
    Dim cs As CSBuilder
    Dim l2 As List
    l2.Initialize
    For i =0 To lstItems.Size -1
        l2.Add(cs.Initialize.size(32).Typeface(Typeface.DEFAULT_BOLD).Append(lstItems.Get(i)).PopAll)
    Next
    B4XComboBox1.SetItems(l2)
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…