all the controls in the frame layout framelayout are in the upper left side of the interface, and after the drawing space overrides the previous control, the frame layout is more likely to be used in game development.
<?xml Version= "1.0" encoding= "Utf-8"? ><framelayout xmlns:android= "Http://schemas.android.com/apk/res/android" Android:layout_width= "Match_parent" android:layout_height= "match_parent" > <textview android:layout_wi Dth= "300DP" android:layout_height= "300DP" android:text= "Tour Cloud Stop Studio" android:gravity= "Center" Android oid:background= "#FFE4B5"/> <textview android:id= "@+id/textview1" Android:layout_wid Th= "150DP" android:layout_height= "120DP" android:text= "Tour Cloud Stop Studio" android:gravity= "Center" Andro id:background= "#D1EEEE"/> <textview android:layout_width= "100DP" Android:layo ut_height= "50DP" android:text= "android:gravity=" center android:background= "#EEB422" /> </framelayout>
<?xml version= "1.0" encoding= "Utf-8"? ><framelayout xmlns:android= "http://schemas.android.com/apk/res/ Android "Android:layout_width=" Match_parent "android:layout_height=" Match_parent "> <imageview Android : id= "@+id/imageview1" android:layout_width= "100DP" android:layout_height= "100DP" android:src= "@raw/pa D "/> <textview android:layout_width=" wrap_content "android:layout_height=" Wrap_content "and roid:text= "Product Name: Ipad Air" android:layout_marginleft= "120DP" android:layout_margintop= "10DP"/> <textview android:layout_width= "wrap_content" android:layout_height= "Wrap_content" Android:te Xt= "Item Amount: $ $" android:layout_marginleft= "120DP" android:layout_margintop= "40DP"/> <t Extview android:layout_width= "wrap_content" android:layout_height= "wrap_content" android:text= "Product color: White Color "android:layout_marginleft="120DP" android:layout_margintop= "70DP"/> <textview android:layout_width= "Fill_pa Rent "android:layout_height=" 3DP "android:text=" "android:layout_marginleft=" 0DP "Android:layo ut_margintop= "110DP" android:background= "#D1EEEE"/> <imageview android:id= "@ +id/imageview2 "android:layout_width=" 100DP "android:layout_height=" 100DP "Android:layout_marginto p= "120DP" android:src= "@raw/pad"/> <textview android:layout_width= "Wrap_content" Android:la yout_height= "Wrap_content" android:text= "Product Name: Ipad Air" android:layout_marginleft= "120DP" Android:lay out_margintop= "140DP"/> <textview android:layout_width= "Wrap_content" Android:layout_h eight= "Wrap_content" android:text= "Product Amount: $ $" android:layout_marginleft= "120DP" Android:layout_margint op= "170DP"/> <textview android:layout_width= "wrap_content" android:layout_height= "Wrap_content" Andro id:text= "Product color: White" android:layout_marginleft= "120DP" android:layout_margintop= "200DP"/> <textview android:layout_width= "fill_parent" android:layout_height= "3DP" android:text= "" android:layout_marginleft= "0DP" android:layout_margintop= "220DP" android:background= "#D1EEEE"/> </FrameLayout>
. NET programmer play to Android development---(10) frame layout framelayout