207 lines
9.5 KiB
XML
207 lines
9.5 KiB
XML
<?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"
|
|
android:background="@color/default_gray"
|
|
tools:context=".activity.contact.AddContactActivity">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/constraintLayout3"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dp_48"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_cancel"
|
|
android:layout_width="@dimen/dp_24"
|
|
android:layout_height="@dimen/dp_24"
|
|
android:layout_marginStart="@dimen/dp_8"
|
|
android:adjustViewBounds="true"
|
|
android:scaleType="centerInside"
|
|
android:src="@drawable/icon_return"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dp_16"
|
|
android:text="新建联系人"
|
|
android:textColor="@color/default_text_color"
|
|
android:textSize="@dimen/sp_16"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toEndOf="@+id/iv_cancel"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_confirm"
|
|
android:layout_width="@dimen/dp_24"
|
|
android:layout_height="@dimen/dp_24"
|
|
android:layout_marginEnd="@dimen/dp_8"
|
|
android:adjustViewBounds="true"
|
|
android:scaleType="centerInside"
|
|
android:src="@drawable/icon_confirm"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/constraintLayout3">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:orientation="vertical"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<com.shehuan.niv.NiceImageView
|
|
android:id="@+id/nv_avatar"
|
|
android:layout_width="@dimen/dp_88"
|
|
android:layout_height="@dimen/dp_88"
|
|
android:layout_gravity="center"
|
|
android:layout_marginTop="@dimen/dp_16"
|
|
android:src="@drawable/default_avatar"
|
|
app:is_circle="true"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dp_48"
|
|
android:layout_margin="@dimen/dp_8">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="保存至本机"
|
|
android:textColor="@color/default_text_color"
|
|
android:textSize="@dimen/sp_14"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dp_48"
|
|
android:layout_margin="@dimen/dp_8"
|
|
android:background="@drawable/add_contact_background">
|
|
|
|
<ImageView
|
|
android:id="@+id/imageView7"
|
|
android:layout_width="@dimen/dp_28"
|
|
android:layout_height="@dimen/dp_28"
|
|
android:layout_marginStart="@dimen/dp_8"
|
|
android:adjustViewBounds="true"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/icon_avatar"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<EditText
|
|
android:id="@+id/et_name"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dp_8"
|
|
android:layout_marginEnd="@dimen/dp_8"
|
|
android:background="@null"
|
|
android:ellipsize="end"
|
|
android:hint="姓名"
|
|
android:inputType="text"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:textColor="@color/default_text_color"
|
|
android:textSize="@dimen/sp_15"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@+id/imageView7"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dp_48"
|
|
android:layout_margin="@dimen/dp_8"
|
|
android:background="@drawable/add_contact_background">
|
|
|
|
<ImageView
|
|
android:id="@+id/imageView8"
|
|
android:layout_width="@dimen/dp_28"
|
|
android:layout_height="@dimen/dp_28"
|
|
android:layout_marginStart="@dimen/dp_8"
|
|
android:adjustViewBounds="true"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/icon_phone"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<EditText
|
|
android:id="@+id/et_phone"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dp_8"
|
|
android:layout_marginEnd="@dimen/dp_8"
|
|
android:background="@null"
|
|
android:ellipsize="end"
|
|
android:hint="号码"
|
|
android:inputType="phone"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:textColor="@color/default_text_color"
|
|
android:textSize="@dimen/sp_15"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@+id/imageView8"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dp_48"
|
|
android:layout_margin="@dimen/dp_8"
|
|
android:background="@drawable/add_contact_background">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dp_24"
|
|
android:text="设为紧急联系人"
|
|
android:textColor="@color/default_text_color"
|
|
android:textSize="@dimen/sp_15"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<com.uiuios.aios.view.ToggleButton
|
|
android:id="@+id/toggleButton"
|
|
android:layout_width="@dimen/dp_34"
|
|
android:layout_height="@dimen/dp_18"
|
|
android:layout_marginEnd="@dimen/dp_32"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</LinearLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |