Finishing the LoginView
If you recall, we did not finish our implementation of the LoginView earlier. Functions such as navigateToSignUp(), navigateToHome(), and onClick(view: View) were left with empty bodies. In addition, the LoginView did not interact in any way with the LoginPresenter. Let's fix that now, shall we?
Fist things first, to navigate a user to the signup screen and home screen, we need views for these screens to exist. We won't concern ourselves with implementing layouts for them now (that will be done in the following sections). We just need them to exist. Create the signup and main packages under com.example.messenger.ui. Create a new empty activity called SignUpActivity in the signup package and an empty activity called ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access