I am trying to do a chat application. In my activity I have a ListView and at bottom EditText with a Button “Send”
Like in chat after writing in EditText and press the Send Button the text will appear in ListView. Two users are there. If the last user is same then that text should add to the previous list.
How can i do that ?
here is my code below,
i don’t want in this structure,
me: hi (after send button click)
me: h r u (after send button click)
i want in this structure,
its taking two list item but i want
me: hi (after send button click)
h r u (after send button click)
friend: fine
1 Answer