Layout main code

Source: Internet
Author: User

Activity_main:

<relativelayout xmlns:android= "Http://schemas.android.com/apk/res/android"
Xmlns:tools= "Http://schemas.android.com/tools"
Android:id= "@+id/container"
Android:layout_width= "Match_parent"
android:layout_height= "Match_parent"
android:orientation= "Vertical"
android:background= "@drawable/bg2" >

<button android:id= "@+id/button2" android:layout_width= "fill_parent" android:layout_height= "Wra P_content "android:layout_alignparentleft=" true "android:layout_below=" @+id/button1 "android:text= "Wrong problem consolidation"/>

<button android:id= "@+id/button3" android:layout_width= "fill_parent" android:layout_height= "Wra P_content "android:layout_alignparentleft=" true "android:layout_below=" @+id/button2 "android:text= "Exit"/>

<button android:id= "@+id/button1" android:layout_width= "fill_parent" android:layout_height= "Wra P_content "android:layout_alignparentleft=" true "android:layout_alignparenttop=" true "Android:layo ut_margintop= "148DP" android:text= "Start"/>

</RelativeLayout>

Cal_main:

<?xml version= "1.0" encoding= "Utf-8"?
<relativelayout xmlns:android= "http://schemas.android.com/ Apk/res/android "
    android:id=" @+id/relativelayout1 "
    android:layout_ Width= "Match_parent"
    android:layout_height= "match_parent"
    android: background= "@drawable/bg2"
    android:orientation= "vertical";

<button
Android:id= "@+id/button4"
Android:layout_width= "Match_parent"
android:layout_height= "Wrap_content"
Android:layout_above= "@+id/textview2"
Android:layout_alignparentleft= "true"
Android:layout_marginbottom= "18DP"
android:text= "OK"/>

<textview

Android:id= "@+id/textview1"

Android:layout_width= "Fill_parent"

Android:layout_height= "50DP

"Android:layout_above=" @+id/edittext1 "

Android:layout_centerhorizontal= "true"

Android:layout_marginbottom= "30DP"

android:gravity= "Center"

Android:textsize= "20px"

Android:editable= "true"/>

<edittext

Android:id= "@+id/edittext1"

Android:layout_width= "Wrap_content"

android:layout_height= "50DP"

Android:layout_above= "@+id/button4"

Android:layout_centerhorizontal= "true"

Android:digits= "1234567890.-"

Android:ems= "10"

android:numeric= "Decimal" >

<textview

Android:id= "@+id/textview2"

Android:layout_width= "230DP"

android:layout_height= "70DP"

Android:layout_alignparentbottom= "true"

Android:layout_alignparentright= "true"

Android:layout_marginbottom= "135DP"

Android:editable= "true"

Android:textsize= "20px"/>

<imageview

Android:id= "@+id/imageview1"

Android:layout_width= "Wrap_content"

android:layout_height= "Wrap_content"

Android:layout_alignbottom= "@+id/textview2"

android:layout_aligntop= "@+id/textview2"

Android:layout_alignparentleft= "true"

android:layout_toleftof= "@+id/textview2"/>

</RelativeLayout>

<requestfocus/>

</EditText>

Show_main:

<?xml version= "1.0" encoding= "Utf-8"?>
<linearlayout xmlns:android= "Http://schemas.android.com/apk/res/android"
Android:id= "@+id/linearlayout1"
Android:layout_width= "Match_parent"
android:layout_height= "Match_parent"
android:orientation= "Vertical"
android:background= "@drawable/bg2" >

<linearlayout
Android:layout_width= "Fill_parent"
android:layout_height= "Wrap_content"
android:orientation= "Vertical"
android:layout_gravity= "Center" >

<linearlayout
Android:layout_width= "Match_parent"
android:layout_height= "Wrap_content"
android:layout_gravity= "Center" >


            <textview
                 android:id= "@+id/textview1"
                 android:layout_width= "93DP "
                Android:layout_ height= "Wrap_content"
                 android:editable= "true"
                 android:text= ""/>


            <edittext
                 android:id= "@+id/edittext1"
                 android:layout_width= "Wrap _content "
                Android : layout_height= "wrap_content"
                 android:digits= "1234567890.-"
                 android:ems= "Ten"
                 android:numeric= "decimal"
                 android:text= "";

<requestfocus/>
</EditText>
</LinearLayout>

<button
Android:id= "@+id/button6"
Android:layout_width= "Match_parent"
android:layout_height= "Wrap_content"
android:text= "OK"/>
<button
Android:id= "@+id/button7"
Android:layout_width= "Match_parent"
android:layout_height= "Wrap_content"
android:text= "Next question"/>
<button

Android:id= "@+id/button8"
        android:layout_width= "Match_parent"
        android:layout_height= "wrap_content"
         android:text= "Delete from wrong question bank"/>
        <button
         android:id= "@+id/button9"
        Android:layout_width= "Match_parent"
        android:layout_height= "Wrap_ Content "
        android:text=" returns "/>
  <linearlayout
       android:layout_width= "fill_parent"
       android:layout_height= "Match_parent"
      android:orientation= "Horizontal";
            <imageview

Android:id= "@+id/imageview2"

Android:layout_width= "Fill_parent"

android:layout_height= "70DP"

android:layout_weight= "5"/>

<textview

Android:id= "@+id/textview2"

Android:layout_width= "Fill_parent"

android:layout_height= "70DP"

android:layout_weight= "3"

Android:editable= "true"

android:text= ""/>

</LinearLayout>

</LinearLayout>

</LinearLayout>

Layout main code

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.