Click how events are processed and the registration form is created (c) the process of creating a registration form

Source: Internet
Author: User

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

    • Publish Tests

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.