Development steps:?
- Create a layout XML file for a new form under Res drawable?
- In Java under org.mydiary.socrates.activity create a corresponding interface Java class, the class must inherit the Android.app.AppcompatActivity parent class, implement a OnCreate () method, and set the layout that the form is bound to X ML file
Public class extends appcompatactivity { @Override protectedvoid onCreate (Bundle Savedinstancestate) { super. OnCreate (savedinstancestate); // set the layout file that the form is bound to }}
Register_activity.xml
- Register the form class in Androidmanifest.xml
1 <?XML version= "1.0" encoding= "Utf-8"?>2 <Manifestxmlns:android= "Http://schemas.android.com/apk/res/android"3 Package= "Org.socrates.mydiary.activity" >4 5 <Application6 Android:allowbackup= "true"7 Android:icon= "@mipmap/ic_launcher"8 Android:label= "Mydiary"9 Android:theme= "@style/apptheme" >Ten <Activity One Android:name=". Loginactivity " A Android:label= "Mydiary" > - <Intent-filter> - <ActionAndroid:name= "Android.intent.action.MAIN" /> the - <categoryAndroid:name= "Android.intent.category.LAUNCHER" /> - </Intent-filter> - </Activity> + <ActivityAndroid:name= "Org.socrates.mydiary.activity.Register_Activity" - Android:label= "New user Registration">//Register the form class + </Activity> A at </Application> - - </Manifest>
Androidmanifest.xml
Summary: Androidmanifest.xml is the core profile of the Android project and records all the component objects in the project.
Click how events are processed and the registration form is created (c) the process of creating a registration form