i try the post Cross platform chat layout example, i facing a problem when i write many words without new line, message cannot show all, also emoji
how can i change the message height to hold all words?
I'm not sure about the chat example. I have always created my own left/right conversation views, resized them based on the text, and filled up a CustomListView.
My Left/Right views consist of a Panel & Label:
And then resized them based on the content:
Sub CreateLeftContentCard(text As String) As Panel
Dim p As Panel
p.SetLayout(0, 0, 100%x , 60dip)
lblMessagesContentLeft.Text = text
lblMessagesContentLeft.Height = su.MeasureMultilineTextHeight(lblMessagesContentLeft, text) + 1dip
pnlMessagesContentLeft.Height = lblMessagesContentLeft.Height + 25dip
p.Height = pnlMessagesContentLeft.Height + 20dip
For the textbox, I hook onto TextChanged and calculate/change the height of the panels accordingly.