Android in the wild guessing diagram interface: Relative interface can be superimposed

Source: Internet
Author: User
Tags relative visibility xmlns
<relativelayout xmlns:android= "http://schemas.android.com/apk/res/android" xmlns:tools= "http://
    
    
    Schemas.android.com/tools "android:layout_width=" match_parent "android:layout_height=" Match_parent "> <linearlayout android:layout_width= "match_parent" android:layout_height= "Match_parent" and
            roid:background= "@drawable/background" android:orientation= "vertical" > <linearlayout Android:id= "@+id/header_bar" android:layout_width= "match_parent" android:layout_height= "0d P "android:layout_weight=" 1 "android:orientation=" horizontal "android:paddingleft=" 5DP
                "android:paddingright=" 5DP "> <button android:id=" @+id/back_btn " Android:layout_width= "0DP" android:layout_height= "Match_parent" Android:la
    
    
          yout_weight= "1"/>  <textview android:layout_width= "0DP" android:layout_height= "Match_parent"
                android:layout_weight= "1.5"/> <textview android:id= "@+id/stage_num" Android:layout_width= "0DP" android:layout_height= "Match_parent" android:layou t_weight= "0.9" android:gravity= "center" android:textcolor= "#ffffff" Androi D:textsize= "10sp"/> <textview android:layout_width= "0DP" and
                roid:layout_height= "Match_parent" android:layout_weight= "1"/> <linearlayout Android:layout_width= "0SP" android:layout_height= "Match_parent" Android:la
                Yout_marginbottom= "5SP" android:layout_margintop= "5SP" android:layout_weight= "1.4" Android:backgroUnd= "#1D338A" android:orientation= "horizontal" android:paddingleft= "5SP" >
                    <imageview android:id= "@+id/coin_img" android:layout_width= "0SP"
    
    
                android:layout_height= "Match_parent" android:layout_weight= "1"/>
                    <textview android:id= "@+id/coin_text" android:layout_width= "0SP"
                    android:layout_height= "Match_parent" android:layout_weight= "2" android:gravity= "center" android:textcolor= "#ffffff" android:textsize= "10SP"/&G
            T </LinearLayout> </LinearLayout> <linearlayout android:layout_width= "M Atch_parent "android:layout_height=" 0SP "android:layout_weight=" 6.5 "Android:orientati On= "HorizOntal "> <linearlayout android:layout_width=" 0sp "Android:layo
                ut_height= "Match_parent" android:layout_weight= "1" android:orientation= "vertical" android:paddingleft= "5SP" > <textview android:layout_width= "ma
    
    
                Tch_parent "android:layout_height=" 0SP "android:layout_weight=" 1.5 "/> <button android:id= "@+id/delete_text_btn" Android:layout_wid
                    Th= "Match_parent" android:layout_height= "0sp" android:layout_marginbottom= "10SP" android:text= "android:textsize=" 10sp "android:gravity=" cent
    
    
                Er_horizontal "android:paddingtop=" 30SP "android:layout_weight=" 1.2 "/> <Button android:id= "@+id/propt_text_btn" android:layout_width= "Match_parent" android:layout_height= "0SP" android:text= "android:textsize=" 10sp
                    "Android:paddingtop=" 30sp "android:gravity=" Center_horizontal " android:layout_weight= "1.2"/> <textview android:layout_width= "Mat"
            Ch_parent "android:layout_height=" 0sp "android:layout_weight=" 0.5 "/>
                </LinearLayout> <relativelayout android:layout_width= "0DP" android:layout_height= "Match_parent" android:layout_weight= "3.5" > <li Nearlayout android:layout_width= "match_parent" android:layout_height= "match_parent "Android:orientation= "vertical" android:paddingleft= "5DP" android:paddingright= "5DP"
                        > <textview android:layout_width= "match_parent"
    
    
                    android:layout_height= "0SP" android:layout_weight= "1"/> <imageview android:id= "@+id/main_image" android:layout_width= "Match_
                    Parent "android:layout_height=" 0SP "android:layout_weight=" 3.5 "/>
    
    
                <!--relative in the picture can be superimposed, this linearlayout--> below </LinearLayout> <linearlayout android:layout_width= "Match_parent" android:layout_height
                        = "Match_parent" android:orientation= "Horizontal" > <textview AndroId:layout_width= "0DP" android:layout_height= "Match_parent" Android:layout_
                        weight= "1"/> <linearlayout android:layout_width= "0DP"
                        android:layout_height= "Match_parent" android:layout_weight= "3" android:orientation= "vertical" > <textview andr Oid:layout_width= "Match_parent" android:layout_height= "0SP" Androi d:layout_weight= "0.7"/> <textview android:id= "@+id/a" Nswer_type "android:layout_width=" Match_parent "Android:layout_hei ght= "0DP" android:layout_weight= "0.4" android:gravity= "Center_hori
                Zontal "            Android:textcolor= "#ffffff" android:textsize= "10sp"/> <!--relative pictures can be stacked Add, this linearlayout on top--> <textview android:layout_width= "Mat   Ch_parent "android:layout_height=" 0sp "android:layout_weight=" 3.6 "
                        /> </LinearLayout> <textview
                        Android:layout_width= "0SP" android:layout_height= "Match_parent"
    
    
            android:layout_weight= "1"/> </LinearLayout> </RelativeLayout> <linearlayout android:layout_width= "0sp" android:layout_height= "mat Ch_parent "android:layout_weight=" 1 "android:orientation=" vertical "> </
       Linearlayout> </LinearLayout> <com.kane.crazyneedkane.view.answerview android:id= "@+id/answer_vi EW "android:layout_width=" match_parent "android:layout_height=" 0DP "Android:layout_wei ght= "2.5" > </com.kane.crazyneedkane.view.AnswerView> <gridview android:
            Id= "@+id/select_text_grid" android:layout_width= "match_parent" android:layout_height= "0SP" android:layout_weight= "4" android:numcolumns= "8" > </GridView> <tex Tview android:layout_width= "match_parent" android:layout_height= "0SP" Android:layout_w eight= "0.3"/> </LinearLayout> <!--default hidden, the answer is correct after the display, android:background= "#dd000000" translucent, eight 0 is fully transparent--> <linearlayout android:id= "@+id/winlayout" android:layout_width= "Match_parent" a Ndroid:layout_height= "MaTch_parent "android:background=" #dd000000 "android:orientation=" horizontal "android:visibility=" in Visible "> <textview android:layout_width=" 0sp "android:layout_height=" mat Ch_parent "android:layout_weight=" 1 "/> <linearlayout Android:layout_widt H= "0DP" android:layout_height= "Match_parent" android:layout_weight= "1" Android:orienta
                tion= "vertical" > <textview android:layout_width= "match_parent"
                android:layout_height= "0SP" android:layout_weight= "2"/> <textview Android:layout_width= "Match_parent" android:layout_height= "0DP" Android:layout_wei ght= "1" android:gravity= "center" android:text= "answer correct" android:textcolor= "#f Fffff "ANdroid:textsize= "22DP"/> <textview android:layout_width= "Match_parent" android:layout_height= "0SP" android:layout_weight= "1.5"/> <linear Layout android:layout_width= "match_parent" android:layout_height= "0SP" and  Roid:layout_marginbottom= "20DP" android:layout_weight= "1" android:orientation= "Horizontal" > <textview android:layout_width= "0sp" Android:la
                    yout_height= "Match_parent" android:layout_weight= "1"/> <textview Android:id= "@+id/win_stage_num" android:layout_width= "0SP" Androi
                    d:layout_height= "Match_parent" android:layout_weight= "1" android:gravity= "center" AndrOid:textcolor= "#ffffff" android:textsize= "10DP"/> <textview Android:layout_width= "0SP" android:layout_height= "Match_parent" Androi d:layout_weight= "1"/> </LinearLayout> <textview android:id= "@+i 
                    D/win_answer_text "android:layout_width=" match_parent "android:layout_height=" 0DP " android:layout_weight= "0.5" android:gravity= "Center" android: Textcolor= "#ffffff" android:textsize= "10DP"/> <textview android:
              Layout_width= "Match_parent" android:layout_height= "0sp" android:layout_weight= "2"/>
                  <button android:id= "@+id/next_btn" android:layout_width= "Match_parent" Android:layout_height= "0DP "android:layout_weight=" 1 "/> <textview android:id=" @+id/gam E_over "android:layout_width=" match_parent "android:layout_height=" 0SP "an
                droid:layout_weight= "1" android:text= "to Be Continued" android:visibility= "invisible"
                   
            Android:textcolor= "#ffffff" android:textsize= "20DP" android:gravity= "center"/> <textview android:layout_width= "Match_parent" android:layout _height= "0SP" android:layout_weight= "2.5"/> </LinearLayout> &LT;TEXTV Iew android:layout_width= "0sp" android:layout_height= "Match_parent" Android:layout_wei ght= "1"/> </LinearLayout> </RelativeLayout>

Author: CSDN Blog Youth Open

Back to the column page: http://www.bianceng.cnhttp://www.bianceng.cn/OS/extra/

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.