B bixmatech Member Licensed User Jun 6, 2017 #1 Hello ... Can I change the color of two letters from sentence? Like "Hi Mr...." , the main color is Black , I want to change just "Hi" to Red B4X: Dim title As String = "Hi Mr...." Dim des As String ListView1.AddTwoLines( title , des ) Thank you
Hello ... Can I change the color of two letters from sentence? Like "Hi Mr...." , the main color is Black , I want to change just "Hi" to Red B4X: Dim title As String = "Hi Mr...." Dim des As String ListView1.AddTwoLines( title , des ) Thank you
R ronell Well-Known Member Licensed User Longtime User Jun 6, 2017 #3 you can also use richstring lib B4X: Sub Globals Dim rs As RichString Private Label1 As Label End Sub Sub Activity_Create(FirstTime As Boolean) Activity.LoadLayout("main") Dim title As String ="HI Mr" rs.Initialize(title) rs.Color(Colors.Red,0,2) Label1.Text = rs End Sub Upvote 0
you can also use richstring lib B4X: Sub Globals Dim rs As RichString Private Label1 As Label End Sub Sub Activity_Create(FirstTime As Boolean) Activity.LoadLayout("main") Dim title As String ="HI Mr" rs.Initialize(title) rs.Color(Colors.Red,0,2) Label1.Text = rs End Sub