. NET programmer play to Android development---(10) frame layout framelayout

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.