Question: You will also get some practice with dialogs. Finally, we will incorporate some aspects of Material Design into the user interface. Part 1: Multi-pane Navigation
You will also get some practice with dialogs. Finally, we will incorporate some aspects of Material Design into the user interface.
Part 1: Multi-pane Navigation of Chat Rooms
Up until now, we have been assuming a single chat room for all chat messages. In this assignment, we will generalize this to allow multiple chat rooms. The chat server from the previous assignments already supports multiple chat rooms, since each chat message includes a chat room as a field in the JSON object, although you only had to support communication through a "default" chat room. In this assignment, we will extend this with the ability for the chat app to navigate between chat rooms using a multi-pane UI. Ideally, this would be used for a tablet interface, however, it should also work for a large cell phone or small tablet. We will assume a multi-pane layout for the main activity in the chat server app, as long as the device is in landscape orientation.
} } // Don't add this (why not?): .addToBackStack (SHOWING CHATROOMS_TAG) .commit(); // TODO get shared view model for current chatroom chatRoomViewModel = new ViewModelProvider (require Activity()).get (ChatroomViewModel.class); // TODO get database reference (for insertions) 1 usage @Override
Step by Step Solution
3.41 Rating (148 Votes )
There are 3 Steps involved in it
It looks like youve posted a code snippet for a basic web server written in Python This code sets up a server socket listens for incoming connections ... View full answer
Get step-by-step solutions from verified subject matter experts
