activity_set_sex.xml 5.41 KB
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:background="#F4F6F8"
    >

    <View
        android:id="@+id/view_1"
        android:layout_width="match_parent"
        android:layout_height="44dp"
        app:layout_constraintTop_toTopOf="parent"
        android:background="@android:color/white"
        />
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="性别"
        android:textColor="#333333"
        android:textSize="18dp"
        app:layout_constraintLeft_toLeftOf="@id/view_1"
        app:layout_constraintRight_toRightOf="@id/view_1"
        app:layout_constraintTop_toTopOf="@id/view_1"
        app:layout_constraintBottom_toBottomOf="@id/view_1"
        />
    <TextView
        android:id="@+id/tv_cancel"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="取消"
        android:textColor="#666666"
        android:textSize="16dp"
        app:layout_constraintLeft_toLeftOf="@id/view_1"
        app:layout_constraintTop_toTopOf="@id/view_1"
        app:layout_constraintBottom_toBottomOf="@id/view_1"
        android:layout_marginLeft="15dp"
        />
    <TextView
        android:id="@+id/tv_ok"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="确认"
        android:textColor="#FE5E09"
        android:textSize="16dp"
        app:layout_constraintRight_toRightOf="@id/view_1"
        app:layout_constraintTop_toTopOf="@id/view_1"
        app:layout_constraintBottom_toBottomOf="@id/view_1"
        android:layout_marginRight="15dp"
        />


    <View
        android:id="@+id/view_2"
        android:layout_width="345dp"
        android:layout_height="50dp"
        android:background="@drawable/bg_solid_white_10"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        android:layout_marginTop="109dp"
        />

    <ImageView
        android:id="@+id/cb_1"
        android:layout_width="13dp"
        android:layout_height="13dp"
        android:background="@mipmap/wsyq"
        app:layout_constraintTop_toTopOf="@id/view_2"
        app:layout_constraintBottom_toBottomOf="@id/view_2"
        app:layout_constraintRight_toRightOf="@id/view_2"
        android:layout_marginRight="20dp"
        />

    <ImageView
        android:id="@+id/iv_1"
        android:layout_width="10dp"
        android:layout_height="14dp"
        android:background="@mipmap/xb_nv"
        app:layout_constraintTop_toTopOf="@+id/view_2"
        app:layout_constraintBottom_toBottomOf="@+id/view_2"
        app:layout_constraintLeft_toLeftOf="@+id/view_2"
        android:layout_marginLeft="161dp"
        />
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:layout_constraintLeft_toRightOf="@id/iv_1"
        app:layout_constraintTop_toTopOf="@+id/iv_1"
        app:layout_constraintBottom_toBottomOf="@+id/iv_1"
        android:textColor="#333333"
        android:textSize="16dp"
        android:text="女"
        android:layout_marginLeft="5dp"
        />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="请选择性别"
        app:layout_constraintBottom_toTopOf="@id/view_2"
        android:layout_marginBottom="15dp"
        app:layout_constraintLeft_toLeftOf="parent"
        android:layout_marginLeft="15dp"
        android:textColor="#666666"
        android:textSize="16dp"
        />

    <View
        android:id="@+id/view_3"
        android:layout_width="345dp"
        android:layout_height="50dp"
        android:background="@drawable/bg_solid_white_10"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        android:layout_marginTop="174dp"
        />

    <ImageView
        android:id="@+id/cb_2"
        android:layout_width="13dp"
        android:layout_height="13dp"
        android:background="@mipmap/wsyq"
        app:layout_constraintTop_toTopOf="@id/view_3"
        app:layout_constraintBottom_toBottomOf="@id/view_3"
        app:layout_constraintRight_toRightOf="@id/view_3"
        android:layout_marginRight="20dp"
        />
    <ImageView
        android:id="@+id/iv_2"
        android:layout_width="10dp"
        android:layout_height="14dp"
        android:background="@mipmap/xb_n"
        app:layout_constraintTop_toTopOf="@+id/view_3"
        app:layout_constraintBottom_toBottomOf="@+id/view_3"
        app:layout_constraintLeft_toLeftOf="@+id/view_3"
        android:layout_marginLeft="161dp"
        />
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:layout_constraintLeft_toRightOf="@id/iv_2"
        app:layout_constraintTop_toTopOf="@+id/iv_2"
        app:layout_constraintBottom_toBottomOf="@+id/iv_2"
        android:textColor="#333333"
        android:textSize="16dp"
        android:text="男"
        android:layout_marginLeft="5dp"
        />




</androidx.constraintlayout.widget.ConstraintLayout>