1.Activity: For storing individual display controls, is the basic component of Android
2.Activity Common method: Public final View Findviewbyid (int id) gets Component Object public void Setcontentview (int layoutresidd) settings based on component ID Display components
3. Set the control's ID value: Format: @+id/id value
4.TextView label (label button):
4.1 Common Properties: 1:android:text//define display text for components
2:textcolor://Set the text color of the file
3:textsize://Set the displayed text size
4:textstyle://Set style for text display, bold, italic
4.2 Setting the text's display style: Normal, Bold (bold), Italic (italic)
4.3 Set the component size or text size:
PX: pixels; Dip: device-dependent pixels;
SP: proportional pixels; PT: point; in: feet;
MM: MM
5. GetText (). toString ()//Get the text content of the control SetText ();//Set the text content of the control
6. Button:
6.14.1 Common Properties: 1:android:text//defining display text for components
2:textcolor://Set the text color of the file
3. enable= "flase or ture"//value is false when not pressed
7.EditText button (text edit width)
7.1 Common Properties: 1:android:text//define display text for components
2:textcolor://Set the text color of the file
3. enable= "flase or ture"//value is false when text box cannot be edited
Android Chapter two controls 1