Creating inbox - how to shorten the content of messages

MikilllMikilll Member ✭✭✭
edited June 2018 in Xamarin.Forms

I have the following problem. I want to create an inbox for messages, something ala Gmail, and as you can see on the screen above. in the view with all messages the content of each message is shortened to one line. How to achieve that? First I thought that I can search for \n (newline character), but in the message content, newline character may not occur. Then I thought that I can count a number of words or characters in the message content and cut the message to the arbitrary number but I don't know what number choose as a boundary, because they can be different screen sizes, different orientations, etc.

Anybody knows how to solve that problem in Xamarin Forms?

Posts

Sign In or Register to comment.