Question: Write code in Java Language and code should run on android studio. Develop a UI for a Chat / Messenger application that shows the messages
Develop a UI for a Chat / Messenger application that shows the messages exchanged, as illustrated in the image below: Curabitur bibendum ornare dolor, quis ullamcorper ligula sodales U. Jack sparrow Lorem ipsum dotor sit amet. consectetur adipiscing elit. Curabitur bibendum omare dolor, quis ullamcorper ligula sodales. Bhaumik Patel Lorem ipsum dolor sit amet, consectetur adipiscing elit. ME Curabitur bibendum ormare dolor, quis ullamcorper ngula sodales. The above image is just for illustration and the display of your app may change, as considered appropriate, as long as it adheres to the following requirements: - Use a Recycler View for displaying chat messages. - Use alternative layouts for each row corresponding to the current user (who is using this screen) and the remote user (with whom chat is being conducted), so that the two users can be differentiated. - When the current user enters a message in the input box and press "Send", the message shall be added to the list. For emulating reply from the remote user, generate some random text and add that to message list, every time the current user sends a message. Take care of ordering of the messages (based upon timestamp)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
