第3次作业

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <Button
        android:id="@+id/button1"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:textColor="#00FFEE"
        android:layout_margin="15dp"
        android:text="按钮一"></Button>
    <Button
        android:id="@+id/botton2"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:textColor="#00FFEE"
        android:layout_below="@id/button1"
        android:layout_margin="15dp"
        android:text="按钮二"></Button>
    <Button
        android:id="@+id/botton3"
        android:la<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <Button
        android:id="@+id/button1"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:textColor="#00FFEE"
        android:layout_margin="15dp"
        android:text="按钮一"></Button>
    <Button
        android:id="@+id/botton2"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:textColor="#00FFEE"
        android:layout_below="@id/button1"
        android:layout_margin="15dp"
        android:text="按钮二"></Button>
    <Button
        android:id="@+id/botton3"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:textColor="#00FFEE"
        android:layout_below="@id/botton2"
        android:layout_margin="15dp"
        android:text="按钮三"></Button>
</RelativeLayout>
  yout_width="match_parent"
        android:layout_height="wrap_content"
        android:textColor="#00FFEE"
        android:layout_below="@id/botton2"
        android:layout_margin="15dp"
        android:text="按钮三"></Button>
</RelativeLayout>
  
 

  

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".Demo2Activity"
    android:orientation="vertical">
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="你的学历是什么?"
        android:textColor="#0A0A0A"/>

    <RadioButton
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="初中"
        />
    <RadioButton
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="高中"
        />
    <RadioButton
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="专科"
        />
    <RadioButton
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="本科"/>


</LinearLayout>
复制代码

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">
    <TextView
        android:layout_width="match_parent"
        android:layout_height="60dp"
        android:text="你学过哪些课程?"
        android:textSize="15pt"></TextView>

    <CheckBox
        android:layout_width="100dp"
        android:layout_height="50dp"
        android:text="java"/>

    <CheckBox
        android:layout_width="100dp"
        android:layout_height="50dp"
        android:text="ios" />

    <CheckBox
        android:layout_width="100dp"
        android:layout_height="50dp"
        android:text="Android"
         />

    <CheckBox
        android:layout_width="100dp"
        android:layout_height="50dp"
        android:text="Html"
         />

    <CheckBox
        android:layout_width="100dp"
        android:layout_height="50dp"
        android:text="Jsp"
        />
</LinearLayout>

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".Main2Activity"
    android:orientation="vertical">
    <ImageView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="@drawable/xiaobiaodayin"
        android:layout_gravity="center"
        android:layout_marginTop="100dp"/>
    <EditText
        android:layout_width="match_parent"
        android:layout_height="80dp"
        android:hint="请输入手机号/邮箱"
        android:layout_marginTop="50dp"
        android:gravity="center" />
    <EditText
        android:layout_width="match_parent"
        android:layout_height="80dp"
        android:hint="请输入密码"
        android:gravity="center"
        android:drawableRight="@drawable/yanjingbi"
        android:drawablePadding="10dp"
        android:layout_marginTop="10dp"/>
    <Button
        android:layout_width="400dp"
        android:layout_height="50dp"
        android:text="登录"
        android:textColor="#FFFFFF"
        android:gravity="center"
        android:layout_gravity="center"
        android:layout_marginTop="30dp"
        android:background="@drawable/btn_2"
        />
    <Button
        android:layout_width="400dp"
        android:layout_height="50dp"
        android:text="不注册,跳过登录"
        android:textColor="#FFFFFF"
        android:gravity="center"
        android:layout_gravity="center"
        android:background="@drawable/btn_3"
        android:layout_marginTop="10dp" />
    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_margin="10dp">
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="注册账号"
            android:layout_margin="10dp"
            android:layout_alignParentLeft="true" />
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="注册账号"
            android:layout_margin="10dp"
            android:layout_alignParentRight="true" />
    </RelativeLayout>

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content">
        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="@drawable/weixin"
            android:layout_alignParentLeft="true"
            android:layout_marginLeft="100dp"/>
        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="@drawable/pingguo"
            android:layout_centerInParent="true"/>
        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="@drawable/qq"
            android:layout_alignParentRight="true"
            android:layout_marginRight="100dp"/>
    </RelativeLayout>

    <RelativeLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content">
        <CheckBox
            android:id="@+id/z1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginLeft="50dp" />
        <TextView
            android:id="@+id/z2"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="已阅读并同意"
            android:layout_toRightOf="@+id/z1"
            android:padding="5dp"/>
        <TextView
            android:id="@+id/z3"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="《用户协议》"
            android:textColor="#FA0606"
            android:layout_toRightOf="@id/z2"
            android:padding="5dp"/>
        <TextView
            android:id="@+id/z4"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text=""
            android:layout_toRightOf="@id/z3"
            android:padding="5dp"/>
        <TextView
            android:id="@+id/z5"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="《隐私政策》"
            android:textColor="#FA0606"
            android:layout_toRightOf="@id/z4"
            android:padding="5dp"/>

    </RelativeLayout>


 

posted @ 2021-09-05 13:20  咸鱼大佬  阅读(24)  评论(0编辑  收藏  举报