XML code:
<?xml version= "1.0" encoding= "Utf-8"? ><relativelayout xmlns:android= "http://schemas.android.com/apk/res/ Android "Android:layout_width=" Match_parent "android:layout_height=" Match_parent "> <!--defines the component in the middle of the parent container- -><textview android:id= "@+id/view01" android:layout_width= "50DP" android:layout_height= "50DP" Android:back Ground= "@drawable/A" android:layout_centerinparent= "true"/><!--defines that the component is located above the parent container--><textview android:id= " @+id/view02 "android:layout_width=" 50DP "android:layout_height=" 50DP "android:background=" @drawable/A "Androi D:layout_above= "@id/view01" android:layout_alignleft= "@id/view01"/><!--defined that the component is located below the View01 component-->< TextView android:id= "@+id/view03" android:layout_width= "50DP" android:layout_height= "50DP" android:background= "@ drawable/a "android:layout_below=" @id/view01 "android:layout_alignleft=" @id/view01 "/><!--defines the component that is located in the VIEW01 component Left--><textview android:id= "@+id/vieW04 "android:layout_width=" 50DP "android:layout_height=" 50DP "android:background=" @drawable/A "android:layout _toleftof= "@id/view01" android:layout_aligntop= "@id/view01"/><!--the component is located on the right side of the view01 component--><textview Androi D:id= "@+id/view05" android:layout_width= "50DP" android:layout_height= "50DP" android:background= "@drawable/A" android:layout_torightof= "@id/view01" android:layout_aligntop= "@id/view01"/></relativelayout>
Effect:
Android uses Reative_layout to generate the plum interface