I am making my first Android program.
I am making a local chat program. Both persons can type and chat on same device. The layout looks like something below.
What do you think is the best layout for this? For now I am thinking of ListActivity.
Any link to code would also be helpful.
Yeah, use a list activity where the layout consists of a relative layout which contains the listview and on top the container for the message edittext and the button.
In the listview adapter add some logic which sets the align of the text-container either to the left or the right site depending on which person wrote the text and you’re good to go.