第二次冲刺 02

第二天冲刺

  昨天主要做了页面的注册页面,今天要做注册页面的一些条件

 

   下面是昨天写的一些注册代码:

<?xml version="1.0" encoding="utf-8"?>

    <TableLayout xmlns:android="http://schemas.android.com/apk/res/android"

        android:id="@+id/tableLayout1"

        android:layout_width="fill_parent"

        android:layout_height="fill_parent"

        android:background="@drawable/mm" >

 

        <TableRow

            android:id="@+id/tableRow1"

            android:layout_width="wrap_content"

            android:layout_height="wrap_content" >

       

 

        <TextView

            android:id="@+id/textView2"

            android:layout_width="wrap_content"

            android:layout_height="wrap_content"

            android:text="用户名"

            android:textColor="#ffffff"

            android:layout_weight="1"

            />

            <EditText 

                android:text=""  

                android:id="@+id/EditText1" 

                android:layout_width="250sp"  

                android:layout_height="wrap_content"

                 android:layout_weight="3">

            </EditText>

      </TableRow>

 

        <TableRow

            android:id="@+id/tableRow2"

            android:layout_width="wrap_content"

            android:layout_height="wrap_content" >

           

            <TextView

            android:id="@+id/textView3"

            android:layout_width="wrap_content"

            android:layout_height="wrap_content"

            android:text="密码"

            android:textColor="#ffffff"

            android:layout_weight="1"

            />

            <EditText 

                android:text=""  

                android:id="@+id/EditText2" 

                android:layout_width="250sp"  

                android:layout_height="wrap_content"

                 android:layout_weight="3">

            </EditText>

        </TableRow>

 

        <TableRow

            android:id="@+id/tableRow3"

            android:layout_width="wrap_content"

            android:layout_height="wrap_content" >

             <TextView

            android:id="@+id/textView4"

            android:layout_width="wrap_content"

            android:layout_height="wrap_content"

            android:text="姓名"

            android:textColor="#ffffff"

            android:layout_weight="1"

            />

            <EditText 

                android:text=""  

                android:id="@+id/EditText3" 

                android:layout_width="250sp"  

                android:layout_height="wrap_content"

                android:layout_weight="3"

                >

            </EditText>

        </TableRow>

 

        <TableRow

            android:id="@+id/tableRow4"

            android:layout_width="wrap_content"

            android:layout_height="wrap_content" >

            <TextView

            android:id="@+id/textView5"

            android:layout_width="wrap_content"

            android:layout_height="wrap_content"

            android:text="性别"

            android:textColor="#ffffff"

             android:layout_weight="1"

            />

 

            <RadioGroup

                android:id="@+id/RadioGroup1" 

                android:layout_width="wrap_content" 

                android:layout_height="wrap_content"

                android:orientation="horizontal"

                 android:layout_weight="3">

                <RadioButton  

                    android:id="@+id/RadioButton01" 

                    android:checked="true" 

                    android:text="男"  

                    android:layout_width="wrap_content"

                     android:layout_height="wrap_content">

                   

                </RadioButton> <RadioButton  

                    android:id="@+id/RadioButton2"

                     android:text="女"  

                     android:layout_width="wrap_content" 

                     android:layout_height="wrap_content">

                   

                </RadioButton>

             </RadioGroup>

        </TableRow>

 

        <TableRow

            android:id="@+id/tableRow5"

            android:layout_width="wrap_content"

            android:layout_height="wrap_content"

             >

             <TextView

            android:id="@+id/textView6"

            android:layout_width="wrap_content"

            android:layout_height="wrap_content"

            android:text="电话"

            android:textColor="#ffffff"

            android:layout_weight="1"

            />

            <EditText 

                android:text=""  

                android:id="@+id/EditText4" 

                android:layout_width="250sp"  

                android:layout_height="wrap_content"

                android:layout_weight="3">

            </EditText>

        </TableRow>

 

        <TableRow

            android:id="@+id/tableRow6"

            android:layout_width="wrap_content"

            android:layout_height="wrap_content" >

             <TextView

            android:id="@+id/textView7"

            android:layout_width="wrap_content"

            android:layout_height="wrap_content"

            android:text="专业"

            android:textColor="#ffffff"

             android:layout_weight="1"

            />

 

            <Spinner

                android:entries="@array/ctype"

                android:id="@+id/spinner1"

                android:layout_width="wrap_content"

                android:layout_height="wrap_content"

                 android:layout_weight="3"/>

        </TableRow>

 

        <TableRow

            android:id="@+id/tableRow7"

            android:layout_width="wrap_content"

            android:layout_height="wrap_content" >

            <TextView

                android:id="@+id/textView8"

                android:layout_width="wrap_content"

                android:layout_height="wrap_content"

                android:text="专长"

                android:layout_weight="1"

                />

              <EditText 

                android:text=""  

                android:id="@+id/EditText5" 

                android:layout_width="200sp"  

                android:layout_height="150sp"

                android:layout_weight="3">

            </EditText>

        </TableRow>

 

        <LinearLayout

            android:id="@+id/linearLayout1"

            android:layout_width="wrap_content"

            android:layout_height="wrap_content"

             >

 

            <Button

                android:id="@+id/button1"

                android:layout_width="wrap_content"

                android:layout_height="wrap_content"

                android:text="提交" />

        </LinearLayout>

      

    </TableLayout>

   

   

   

    

posted @ 2016-06-22 13:37  beifangderen  阅读(109)  评论(0编辑  收藏  举报