Skip to Main Content
Learn Spring for Android Application Development
book

Learn Spring for Android Application Development

by S. M. Mohi Us Sunnat, Igor Kucherenko
January 2019
Intermediate to advanced content levelIntermediate to advanced
392 pages
10h 11m
English
Packt Publishing
Content preview from Learn Spring for Android Application Development

Creating new activity

Now we need an activity where we will create a function to insert the user details and save into the database. Right-click on the app folder and create Empty Activity named NewUserActivity.kt like the following screenshot:

Here is the code of the layout of this class named activity_new_user.xml. (The entire code can be found at GitHub link):

--------    <EditText            android:id="@+id/editEmail"            android:layout_width="match_parent"            android:layout_height="wrap_content"            android:hint="@string/hint_email"            android:inputType="textEmailAddress"            android:padding="5dp"            android:textSize="18sp" android:layout_marginTop="8dp"            app:layout_constraintTop_toBottomOf= ...
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.
Start your free trial

You might also like

Building Applications with Spring 5 and Vue.js 2

Building Applications with Spring 5 and Vue.js 2

James J. Ye

Publisher Resources

ISBN: 9781789349252Supplemental Content