A4: Chat of a Lifetime
Asking the real questions in life!
This assignment has a release code! Please download it below, extract it, and open it in Android Studio. Ensure it can compile and run fine on your emulator before starting this assignment.
For our third assignment, we'll have you implement the ViewModel to connect up a mock chat app! Instead of chatting with another real person (as that would require a lot of real, complex networking), we'll have you chat with a mini pocket philosopher on your phone!
We've had enough assignments about money at this point, haven't we? And money isn't happiness, after all...
Let's walk through the code, shall we?
Release Code:
Expand each of the files below for a description of the release code!
There are a few other files here, but those are not too important and are mostly complete:
ChatBubble.ktis just a component for the Chat Bubble.Other files are basically junk; don't worry about them.
Requirements:
Okay, onto the assignment!
This assignment is a bit different from previous assignments in that you'll be implementing features, one by one. The reason we do not split then into files is because your solution will often have to span several files for each feature.
(expand each of your features' requirements below!)
If you've solved A4 correctly, your solution should look something like this...
When you're done, export your project through Android Studio and upload your ZIP to CMS! Congrats on finishing A4!

Note: Perhaps you find it annoying that you have to scroll with each message manually? We'll learn a solution for that next week with UIEvents!
Last updated
Was this helpful?

