Hi, I am creating a chatbox function and encountered the problem of alignment of text messages.
I currently put the messages in a list, with 2 separate groups
[Messages from others] & [My Messages] in 1 row
I added visibility setting to each of them respectively.
when i sent a message, the group [My message] should appear
while, the group [Messages from others] is invisible.
However, when i was testing the app, the invisible group [Messages from others] was actually taking up space, so my messages appear to be very very wide apart…
Is there any way i can prevent the invisible group from taking up space?
Actually this alignment problem happens in my other screens, but it really should not be happening in the chat function…
Thank you so much!!!