title: Whatsapp Message Layout - How to get time-view in the same row
body: <p>I was wondering how WhatsApp handles the time shown in every message.</p>
  
  <p>For those who don't know:</p>
  
  <ol>
  <li>If the message is very short, the text and time are in the same row.</li>
  <li>If the message is long, the time is in the bottom right corner - the text wrapped around it.</li>
  </ol>
  
  <p>With a <code>RelativeLayout</code> and <code>toLeftOf</code> I would get 1) but not 2) as previous lines would be "cut off" at the position of the time view. Same behaviour If i use a <code>LinearLayout</code>.</p>
  
  <p>So I tried to use a <code>FrameLayout</code> or a <code>RelativeLayout</code> without any connection between text and time.</p>
  
  <p>However, if the text is as long as the message-view is big, both views would overlap.
  If I put blank characters to my message I wouldn't have the time on the right.</p>
  
  <p>Do they really have some kind of text-wrapping-lib for this or is it possible to do only with layouts?</p>
  
  <p>Here is the requested screenshot:</p>
  
  <p><img src="https://i.stack.imgur.com/MAL6b.png" alt="enter image description here"></p>