1 <LinearLayoutxmlns:android= "Http://schemas.android.com/apk/res/android"2 Android:layout_width= "Match_parent"3 Android:layout_height= "Match_parent"4 android:orientation= "vertical" 5 android:gravity= "Center_vertical"6 >7 8 <ImageView9 Android:id= "@+id/imageview1"Ten Android:layout_width= "Match_parent" One Android:layout_height= "Wrap_content" A android:src= "@drawable/qq_image" /> - - <CheckBox the Android:id= "@+id/checkbox1" - Android:layout_width= "Wrap_content" - Android:layout_height= "Wrap_content" - Android:text= "checkbox" /> + - <EditText + Android:id= "@+id/edittext1" A Android:layout_width= "Match_parent" at Android:layout_height= "Wrap_content" - Android:hint= "EditText" - Android:ems= "Ten" > - - <Requestfocus/> - </EditText> in - <Autocompletetextview to Android:id= "@+id/autocompletetextview1" + Android:layout_width= "Match_parent" - Android:layout_height= "Wrap_content" the Android:completionthreshold= "2" * Android:hint= "@string/edittext1_name" > $ </Autocompletetextview>Panax Notoginseng - <Multiautocompletetextview the Android:id= "@+id/multiautocompletetextview1" + Android:layout_width= "Match_parent" A Android:layout_height= "Wrap_content" the Android:completionthreshold= "2" + Android:hint= "@string/edittext2_name" > - </Multiautocompletetextview> $ $ <Button - Android:id= "@+id/button1" - Android:layout_width= "Match_parent" the Android:layout_height= "50DP" - Android:background= "#C0D9D9"Wuyi Android:text= "button" /> the - <Com.example.anroiddome.MyTextView Wu Android:id= "@+id/textview1" - Android:layout_width= "Match_parent" About Android:layout_height= "Wrap_content" $ android:ellipsize= "Marquee" - android:focusable= "true" - Android:focusableintouchmode= "true" - Android:singleline= "true" A Android:text= "@string/view_name" /> + the <ToggleButton - Android:id= "@+id/togglebutton" $ Android:layout_width= "Match_parent" the Android:layout_height= "Wrap_content" the android:checked= "false" the Android:textoff= "Off (ToggleButton)" the Android:texton= "On (ToggleButton)" /> - in <Radiogroup the Android:id= "@+id/radiogroup1" the Android:layout_width= "Wrap_content" About Android:layout_height= "Wrap_content" the android:orientation= "Horizontal" the > the + <RadioButton - Android:id= "@+id/radio0" the Android:layout_width= "Match_parent"Bayi Android:layout_height= "Wrap_content" the Android:text= "Male" /> the - <RadioButton - Android:id= "@+id/radio1" the Android:layout_width= "Match_parent" the Android:layout_height= "Wrap_content" the android:checked= "true" the Android:text= "female" /> - </Radiogroup> the the </LinearLayout>
Finishing in http://naotu.baidu.com/file/e5880b84b1a906838116f7a45f58de78
Android Layout controls