第三周
1
<?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout 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"> <Button android:id="@+id/btn_1" android:layout_width="128dp" android:layout_height="70dp" android:background="#FF0000" android:text="按钮一" tools:ignore="MissingConstraints" tools:layout_editor_absoluteX="128dp" tools:layout_editor_absoluteY="16dp" /> <Button android:id="@+id/btn_2" android:layout_width="128dp" android:layout_height="70dp" android:background="#FFFF37" android:text="按钮二" tools:ignore="MissingConstraints" tools:layout_editor_absoluteX="128dp" tools:layout_editor_absoluteY="105dp" /> <Button android:id="@+id/btn_3" android:layout_width="119dp" android:layout_height="75dp" android:text="按钮三" tools:ignore="MissingConstraints" tools:layout_editor_absoluteX="128dp" tools:layout_editor_absoluteY="203dp" /> </androidx.constraintlayout.widget.ConstraintLayout>
<?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout 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"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="你的学历" android:textSize="30dp" android:textColor="#000000" tools:ignore="MissingConstraints" /> <RadioButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="初中" tools:ignore="MissingConstraints" tools:layout_editor_absoluteX="0dp" tools:layout_editor_absoluteY="40dp" /> <RadioButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="高中" tools:ignore="MissingConstraints" tools:layout_editor_absoluteX="0dp" tools:layout_editor_absoluteY="88dp" /> <RadioButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="专科" tools:ignore="MissingConstraints" tools:layout_editor_absoluteX="0dp" tools:layout_editor_absoluteY="136dp" /> <RadioButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="本科" tools:ignore="MissingConstraints" tools:layout_editor_absoluteX="0dp" tools:layout_editor_absoluteY="184dp" />
<?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout 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=".MainActivity"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="你学过哪些课程" android:textColor="#000000" tools:ignore="MissingConstraints" /> <CheckBox android:layout_width="match_parent" android:layout_height="wrap_content" android:text="JAVA" tools:ignore="MissingConstraints" /> <CheckBox android:layout_width="match_parent" android:layout_height="wrap_content" android:text="IOS" tools:ignore="MissingConstraints" tools:layout_editor_absoluteX="0dp" tools:layout_editor_absoluteY="48dp" /> <CheckBox android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Android" tools:ignore="MissingConstraints" tools:layout_editor_absoluteX="0dp" tools:layout_editor_absoluteY="96dp" /> <CheckBox android:layout_width="match_parent" android:layout_height="wrap_content" android:text="HTML" tools:ignore="MissingConstraints" tools:layout_editor_absoluteX="0dp" tools:layout_editor_absoluteY="151dp" /> <CheckBox android:layout_width="match_parent" android:layout_height="wrap_content" android:text="JSP" tools:ignore="MissingConstraints" tools:layout_editor_absoluteX="0dp" tools:layout_editor_absoluteY="199dp" /> </androidx.constraintlayout.widget.ConstraintLayout>
2
<?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout 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"> <Button android:id="@+id/btn_1" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="按钮1" android:layout_marginBottom="7dp" android:onClick="click1" tools:ignore="MissingConstraints" /> <Button android:id="@+id/btn_2" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="按钮2" tools:ignore="MissingConstraints" tools:layout_editor_absoluteX="0dp" tools:layout_editor_absoluteY="48dp" /> <Button android:id="@+id/btn_3" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="按钮3" tools:ignore="MissingConstraints" tools:layout_editor_absoluteX="0dp" tools:layout_editor_absoluteY="96dp" /> </androidx.constraintlayout.widget.ConstraintLayout
3
<?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout 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"> <ImageView android:id="@+id/v_1" android:layout_width="88dp" android:layout_height="94dp" android:background="@drawable/tubiao" tools:ignore="MissingConstraints" tools:layout_editor_absoluteX="121dp" tools:layout_editor_absoluteY="96dp" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="小标打印" android:textColor="#000000" android:textSize="24dp" tools:ignore="MissingConstraints" tools:layout_editor_absoluteX="229dp" tools:layout_editor_absoluteY="96dp" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="XIAOBIAO" android:textColor="#000000" android:textSize="20dp" tools:ignore="MissingConstraints" tools:layout_editor_absoluteX="229dp" tools:layout_editor_absoluteY="128dp" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="PRINTER" android:textColor="#000000" android:textSize="20dp" tools:ignore="MissingConstraints" tools:layout_editor_absoluteX="229dp" tools:layout_editor_absoluteY="162dp" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="注册账号" android:textColor="#d0d0d0" android:textSize="20dp" tools:ignore="MissingConstraints" tools:layout_editor_absoluteX="61dp" tools:layout_editor_absoluteY="520dp" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="忘记密码" android:textColor="#d0d0d0" android:textSize="20dp" tools:ignore="MissingConstraints" tools:layout_editor_absoluteX="294dp" tools:layout_editor_absoluteY="520dp" /> <EditText android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="请输入账号/邮箱" android:textColor="#d0d0d0" android:textSize="24dp" tools:ignore="MissingConstraints" tools:layout_editor_absoluteX="133dp" tools:layout_editor_absoluteY="247dp" /> <EditText android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="请输入密码" android:textColor="#d0d0d0" android:textSize="24dp" tools:ignore="MissingConstraints" tools:layout_editor_absoluteX="167dp" tools:layout_editor_absoluteY="321dp" /> <ImageView android:id="@+id/v_2" android:layout_width="42dp" android:layout_height="28dp" android:background="@drawable/tp" tools:ignore="MissingConstraints" tools:layout_editor_absoluteX="328dp" tools:layout_editor_absoluteY="346dp" /> <ImageView android:id="@+id/v_3" android:layout_width="56dp" android:layout_height="54dp" android:background="@drawable/wx" tools:ignore="MissingConstraints" tools:layout_editor_absoluteX="98dp" tools:layout_editor_absoluteY="579dp" /> <ImageView android:id="@+id/v_4" android:layout_width="56dp" android:layout_height="54dp" android:background="@drawable/ap" tools:ignore="MissingConstraints" tools:layout_editor_absoluteX="203dp" tools:layout_editor_absoluteY="579dp" /> <ImageView android:id="@+id/v_5" android:layout_width="56dp" android:layout_height="54dp" android:background="@drawable/qq" tools:ignore="MissingConstraints" tools:layout_editor_absoluteX="301dp" tools:layout_editor_absoluteY="579dp" /> <CheckBox android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="用户已同意" android:textColor="#d0d0d0" tools:ignore="MissingConstraints" tools:layout_editor_absoluteX="40dp" tools:layout_editor_absoluteY="658dp" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="《用户协议》" android:textColor=" #FF0000" tools:ignore="MissingConstraints" tools:layout_editor_absoluteX="144dp" tools:layout_editor_absoluteY="673dp" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="《隐私政策》" android:textColor=" #FF0000" tools:ignore="MissingConstraints" tools:layout_editor_absoluteX="243dp" tools:layout_editor_absoluteY="673dp" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="和" android:textColor="#d0d0d0" tools:ignore="MissingConstraints" tools:layout_editor_absoluteX="229dp" tools:layout_editor_absoluteY="673dp" /> <Button android:layout_width="216dp" android:layout_height="43dp" android:background="#000000" android:backgroundTint="#ADADAD" android:text="登录" android:textColor="#ffffff" tools:ignore="MissingConstraints" tools:layout_editor_absoluteX="123dp" tools:layout_editor_absoluteY="391dp" /> <Button android:layout_width="216dp" android:layout_height="43dp" android:background="#000000" android:text="不注册跳过登录" android:textColor="#ffffff" tools:ignore="MissingConstraints" tools:layout_editor_absoluteX="123dp" tools:layout_editor_absoluteY="446dp" /> </androidx.constraintlayout.widget.ConstraintLayout>