1First, create a project
2And fill in the properties of the project
3CreateActivityClass.EclipseUseAlt +/The shortcut key can automatically complete the parent class
4InREC/LayoutCreate a layout in the folderXMLPageNew-> others-> Android XML file
5RegisterActivitySubclassAndroidmanifest. xml, UseEclispsYou can add them visually and double-clickAndroidmanifest. xmlSelect tagApplication-> Add-> Activity, Enter the created Class Name
At this point, a usableActivityThe creation is complete. The next step is to addUIElements and page responsesCode
AddCheckboxAs an example, the effect is to click the masterActivityPage to jumpCheckboxactivityInterface
1,MasterActivityAddButton. OpenMain.. xml, UseOutlineWindow"+",AddButton,EnterButtonAttributes
2,InSrc/activitymainClass, that is, the masterActivityPage Jump code in the interface response class,
2.1StatementButtonVariable And ListenerOnclicklistener
2.2ImplementationOnclicklistenerListener jump logic, that isOnclihckFunction
2-3Bind ListenerOnclicklistenerToButtonMedium
3, DirectionCheckboxactivityAddCheckboxOfWidget
4, DirectionCheckboxactivityAdd rendering code on the page