XML file:
<Framelayoutxmlns:android= "Http://schemas.android.com/apk/res/android"Android:layout_width= "Match_parent"Android:layout_height= "Match_parent"> <ImageViewAndroid:layout_width= "128DP"Android:layout_height= "128DP"android:src= "@drawable/p03"/>Image<ImageViewAndroid:layout_width= "64DP"Android:layout_height= "64DP"android:src= "@drawable/p02"/> <ImageViewAndroid:layout_width= "32DP"Android:layout_height= "32DP"android:src= "@drawable/p01"/> <TextViewAndroid:layout_width= "Wrap_content"Android:layout_height= "Wrap_content"android:textsize= "20SP"Android:textcolor= "#000"Android:text= "View Picture"android:layout_gravity= "Bottom|center_horizontal"/></Framelayout>
Grid layout: GridLayout
<LinearLayoutxmlns:android= "Http://schemas.android.com/apk/res/android"Android:layout_width= "Match_parent"Android:layout_height= "Match_parent"android:orientation= "vertical" > <GridLayoutAndroid:layout_width= "Match_parent"Android:layout_height= "Wrap_content"Android:columncount= "5"cross-column android:orientation= "Horizontal" > <TextViewAndroid:text= "User name" /> <EditTextAndroid:layout_columnspan= "4"cross-line android:layout_gravity= "Fill_horizontal"Android:hint= "2-10 characters" /> <TextViewAndroid:text= "Password" /> <EditTextAndroid:layout_columnspan= "4"android:layout_gravity= "Fill_horizontal"Android:hint= "2-10 characters" /> </GridLayout> <GridLayoutAndroid:layout_width= "Match_parent"Android:layout_height= "Wrap_content"Android:columncount= "5"android:orientation= "Horizontal"Android:layout_margintop= "20DP"> <ButtonAndroid:text= "No"android:visibility= "Invisible" /> <ButtonAndroid:background= "@drawable/btn_bg"Android:drawableleft= "@drawable/login32x32"Android:text= "Login"Android:textcolor= "#fff"/> <ButtonAndroid:text= "No"android:visibility= "Invisible" /> <ButtonAndroid:background= "@drawable/btn_bg"Android:drawableleft= "@drawable/exit32x32"Android:text= "Exit"Android:textcolor= "#fff"/> <ButtonAndroid:text= "No"android:visibility= "Invisible" /> </GridLayout></LinearLayout>
Android 05 Frame layout: framelayout grid cloth according to GridLayout