title: How to create chat application in android?
body: <p>I have to create a chat module in my android app. I created the layout for that and used a 9 patch image for displaying messages. Now I want to know how the messages are displayed in the left and right areas of the screen.</p>
  
  <p>This is my screen</p>
  
  <blockquote>
    <p><img src="https://i.stack.imgur.com/mt0oR.png" alt="enter image description here"></p>
  </blockquote>