i am trying to use xcustomlistview as chatbox and i am trying to replace some text with smileys
as example a text like that
B4X:
hello this is a chat :) and this is a test :)
i want to replace the smiley symbol text with an image in the same place of its text position, i have attached a sample project that included smile1.png that i want to replace this symbol with it
very good tutorial but something i couldn't achieve i do the following now
B4X:
Sub CreateListItem(Text As String, Width As Int, Height As Int) As Panel
Dim p As Panel
Dim cs As CSBuilder
p.Initialize("")
p.SetLayout(0, 0, Width, Height)
p.LoadLayout("chatlay")
Labelchat.Text = cs.Initialize.Color(0xFF0B8200).Append(Text).PopAll
Return p
End Sub
i couldn't figure how to change the smile character inside Text with image before use CSBuilder there will be not only one smile charcter text could be
example text smiley
B4X:
hi :) this is text message with smiley sample ;) on how to use csbuilder to replace smiley chars with images :-) and so on