Android OS: how to display time of messages in WhatsApp and Telegram?

0 like 0 dislike
9 views
My buddy is a programmer claims to make the time display in the messages in Telegram and WhatsApp is not possible without some calculation rows, they say, is a big problem. It is on the phone, you need to calculate the length of the string on the screen to measure the text and calculate which word does not fit on the watch. Then implement the algorithm for word wrap, etc. is It really so? Or are there any hacks like in the HTML layout, type, dev-analogue of a separate div and padding: -10px ?

We now have time is always a separate line in the message area that does not save space on the chat screen. As you wish:
5b6c6a3bda7ea233626838.jpeg
by | 9 views

1 Answer

0 like 0 dislike
in this case, the easiest way using relativeLayout to layout, the whole point of the relativity of the location element relative to each other
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Apr 25, 2019 by solotony
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
asked Jun 3, 2019 by max_front
110,608 questions
257,186 answers
0 comments
28,740 users