Developing the signup UI

Let's develop the signup user interface. First, we have to implement the necessary views, starting from the layout of SignUpActivity. We do not need much in terms of elements for our SignUpActivity layout. We need three input fields to take the username, password, and phone number of a user to be registered. In addition, we need a button to submit the signup form as well as a progress bar to show when the signup is in progress.

The following is our activity_sign_up.xml layout:

<?xml version="1.0" encoding="utf-8"?><android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:tools="http://schemas.android.com/tools"    android:layout_width="match_parent"    android:layout_height= ...

Get Kotlin Programming By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.