1 <?XML version= "1.0" encoding= "Utf-8"?>2 <LinearLayoutxmlns:android= "Http://schemas.android.com/apk/res/android"3 Xmlns:tools= "Http://schemas.android.com/tools"4 Android:layout_width= "Match_parent"5 Android:layout_height= "Match_parent"6 Android:paddingbottom= "@dimen/activity_vertical_margin"7 Android:paddingleft= "@dimen/activity_horizontal_margin"8 Android:paddingright= "@dimen/activity_horizontal_margin"9 Android:paddingtop= "@dimen/activity_vertical_margin"Ten Tools:context= "Com.hanqi.testapp2.TestActivity1" One android:orientation= "vertical"> A - <LinearLayout - Android:layout_width= "Match_parent" the Android:layout_height= "Wrap_content"> - <ImageButton - Android:layout_width= "Wrap_content" - Android:layout_height= "Wrap_content" + android:src= "@drawable/anniu04"/> - <ImageButton + Android:layout_width= "Wrap_content" A Android:layout_height= "Wrap_content" at android:src= "@drawable/anniu05"/> - <Button - Android:layout_width= "Wrap_content" - Android:layout_height= "Wrap_content" - Android:background= "@drawable/anniu04" - Android:text= "Normal button"/> in </LinearLayout> - to <LinearLayout + Android:layout_width= "Match_parent" - Android:layout_height= "Wrap_content"> the <ImageView * Android:layout_width= "100DP" $ Android:layout_height= "100DP"Panax Notoginseng android:src= "@drawable/yuantu" - Android:alpha= "1" the Android:background= "#f00" + Android:scaletype= "Center"/> A <ImageView the Android:layout_width= "100DP" + Android:layout_height= "100DP" - android:src= "@drawable/yuantu" $ Android:alpha= "1" $ Android:background= "#f00" - Android:scaletype= "Centercrop"/> - <ImageView the Android:layout_width= "100DP" - Android:layout_height= "100DP"Wuyi android:src= "@drawable/yuantu" the Android:alpha= "1" - Android:background= "#f00" Wu Android:scaletype= "Centerinside"/> - </LinearLayout> About <LinearLayout $ Android:layout_width= "Match_parent" - Android:layout_height= "Wrap_content"> - <ImageView - Android:layout_width= "100DP" A Android:layout_height= "100DP" + android:src= "@drawable/yuantu" the Android:alpha= "1" - Android:background= "#f00" $ Android:scaletype= "Matrix"/> the <ImageView the Android:layout_width= "100DP" the Android:layout_height= "100DP" the android:src= "@drawable/yuantu" - Android:alpha= "1" in Android:background= "#f00" the Android:scaletype= "Fitcenter"/> the About </LinearLayout> the <LinearLayout the Android:layout_width= "Match_parent" the Android:layout_height= "Wrap_content"> + <ImageView - Android:layout_width= "100DP" the Android:layout_height= "100DP"Bayi android:src= "@drawable/yuantu" the Android:alpha= "1" the Android:background= "#f00" - Android:scaletype= "Fitstart"/> - <ImageView the Android:layout_width= "100DP" the Android:layout_height= "100DP" the android:src= "@drawable/yuantu" the Android:alpha= "1" - Android:background= "#f00" the Android:scaletype= "Fitend"/> the the <ImageView94 Android:layout_width= "100DP" the Android:layout_height= "100DP" the android:src= "@drawable/yuantu" the Android:alpha= "1"98 Android:background= "#f00" About Android:scaletype= "Fitxy"/> - </LinearLayout>101 <Radiogroup102 Android:layout_width= "Match_parent"103 Android:layout_height= "Wrap_content">104 <RadioButton the Android:layout_width= "Wrap_content"106 Android:layout_height= "Wrap_content"107 Android:text= "Male"/>108 <RadioButton109 Android:layout_width= "Wrap_content" the Android:layout_height= "Wrap_content"111 Android:text= "female"/> the </Radiogroup>113 </LinearLayout>
android-Picture Button Summary