framelayout-Frame Layout
Implementation results:
Code:
1 <?XML version= "1.0" encoding= "Utf-8"?>2 <Framelayoutxmlns:android= "Http://schemas.android.com/apk/res/android"3 Android:layout_width= "Match_parent"4 Android:layout_height= "Match_parent" >5 6 <TextViewAndroid:layout_width= "300DP"7 Android:layout_height= "300DP"8 android:layout_gravity= "Center"9 Android:background= "#ff0000"/>Ten One <TextViewAndroid:layout_width= "250DP" A Android:layout_height= "250DP" - android:layout_gravity= "Center" - Android:background= "#00ff00"/> the - <TextViewAndroid:layout_width= "200DP" - Android:layout_height= "200DP" - android:layout_gravity= "Center" + Android:background= "#0000ff"/> - + <TextViewAndroid:layout_width= "150DP" A Android:layout_height= "150DP" at android:layout_gravity= "Center" - Android:background= "#ffff00"/> - - <TextViewAndroid:layout_width= "100DP" - Android:layout_height= "100DP" - android:layout_gravity= "Center" in Android:background= "#ffc0cb"/> - to <TextViewAndroid:layout_width= "50DP" + Android:layout_height= "50DP" - android:layout_gravity= "Center" the Android:background= "#f8f8ff"/> * $ </Framelayout>
Learning about the layout of Android development