353 行
15 KiB
XML
353 行
15 KiB
XML
|
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
|
<layout 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">
|
||
|
|
|
||
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
tools:context=".ui.ChatActivity">
|
||
|
|
|
||
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||
|
|
android:id="@+id/top"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="120dp"
|
||
|
|
app:layout_constraintTop_toTopOf="parent">
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:id="@+id/bg"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="120dp"
|
||
|
|
android:scaleType="centerCrop"
|
||
|
|
android:src="@mipmap/bg_register"
|
||
|
|
app:layout_constraintTop_toTopOf="parent" />
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:id="@+id/back"
|
||
|
|
android:layout_width="40dp"
|
||
|
|
android:layout_height="40dp"
|
||
|
|
android:layout_marginStart="15dp"
|
||
|
|
android:layout_marginBottom="34dp"
|
||
|
|
android:src="@mipmap/back"
|
||
|
|
app:layout_constraintBottom_toBottomOf="@+id/bg"
|
||
|
|
app:layout_constraintStart_toStartOf="parent" />
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:gravity="center_vertical"
|
||
|
|
app:layout_constraintBottom_toBottomOf="@+id/back"
|
||
|
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
|
app:layout_constraintTop_toTopOf="@+id/back">
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:id="@+id/avatar"
|
||
|
|
android:layout_width="30dp"
|
||
|
|
android:layout_height="30dp"
|
||
|
|
android:scaleType="centerCrop"
|
||
|
|
android:src="@mipmap/temp" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/title"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginStart="5dp"
|
||
|
|
android:text="Nourabloody"
|
||
|
|
android:textColor="#222222"
|
||
|
|
android:textSize="18sp"
|
||
|
|
android:textStyle="bold" />
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/skip"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginEnd="15dp"
|
||
|
|
android:text="Skip"
|
||
|
|
android:textColor="#999999"
|
||
|
|
android:textSize="18sp"
|
||
|
|
android:textStyle="bold"
|
||
|
|
app:layout_constraintBottom_toBottomOf="@+id/back"
|
||
|
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
|
app:layout_constraintTop_toTopOf="@+id/back" />
|
||
|
|
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:id="@+id/more"
|
||
|
|
android:layout_width="40dp"
|
||
|
|
android:layout_height="40dp"
|
||
|
|
android:layout_marginEnd="15dp"
|
||
|
|
android:src="@mipmap/more"
|
||
|
|
app:layout_constraintBottom_toBottomOf="@+id/back"
|
||
|
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
|
app:layout_constraintTop_toTopOf="@+id/back" />
|
||
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||
|
|
|
||
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||
|
|
android:id="@+id/empty"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:visibility="visible"
|
||
|
|
app:layout_constraintTop_toBottomOf="@+id/top">
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:id="@+id/head"
|
||
|
|
android:layout_width="120dp"
|
||
|
|
android:layout_height="120dp"
|
||
|
|
android:layout_marginTop="28dp"
|
||
|
|
android:scaleType="centerCrop"
|
||
|
|
android:src="@mipmap/temp"
|
||
|
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
|
app:layout_constraintTop_toTopOf="parent" />
|
||
|
|
|
||
|
|
<View
|
||
|
|
android:id="@+id/ststus"
|
||
|
|
android:layout_width="24dp"
|
||
|
|
android:layout_height="24dp"
|
||
|
|
android:layout_marginStart="4dp"
|
||
|
|
android:background="#FF26D526"
|
||
|
|
app:layout_constraintEnd_toEndOf="@+id/head"
|
||
|
|
app:layout_constraintTop_toTopOf="@+id/head" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/name"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginTop="15dp"
|
||
|
|
android:ellipsize="end"
|
||
|
|
android:lines="1"
|
||
|
|
android:text="Nourabloody,24"
|
||
|
|
android:textColor="#ff222222"
|
||
|
|
android:textSize="24sp"
|
||
|
|
android:textStyle="bold"
|
||
|
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
|
app:layout_constraintTop_toBottomOf="@+id/head" />
|
||
|
|
|
||
|
|
<androidx.recyclerview.widget.RecyclerView
|
||
|
|
android:id="@+id/tags"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="50dp"
|
||
|
|
android:layout_marginTop="10dp"
|
||
|
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
|
app:layout_constraintTop_toBottomOf="@+id/name" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/msg_start_video"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginTop="30dp"
|
||
|
|
android:text="START CHATTING"
|
||
|
|
android:textColor="#ffff02a7"
|
||
|
|
android:textSize="22sp"
|
||
|
|
android:textStyle="bold"
|
||
|
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
|
app:layout_constraintTop_toBottomOf="@+id/tags" />
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:id="@+id/start_video"
|
||
|
|
android:layout_width="80dp"
|
||
|
|
android:layout_height="80dp"
|
||
|
|
android:layout_marginTop="10dp"
|
||
|
|
android:scaleType="centerCrop"
|
||
|
|
android:src="@mipmap/video_videocall"
|
||
|
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
|
app:layout_constraintTop_toBottomOf="@+id/msg_start_video" />
|
||
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||
|
|
|
||
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||
|
|
android:id="@+id/chat_top"
|
||
|
|
android:layout_width="345dp"
|
||
|
|
android:layout_height="145dp"
|
||
|
|
android:layout_marginTop="-14dp"
|
||
|
|
android:background="@drawable/bg_tag_match"
|
||
|
|
android:padding="15dp"
|
||
|
|
android:visibility="gone"
|
||
|
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
|
app:layout_constraintTop_toBottomOf="@+id/top">
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:id="@+id/avatar3"
|
||
|
|
android:layout_width="50dp"
|
||
|
|
android:layout_height="50dp"
|
||
|
|
android:scaleType="centerCrop"
|
||
|
|
android:src="@mipmap/temp"
|
||
|
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
|
app:layout_constraintTop_toTopOf="parent" />
|
||
|
|
|
||
|
|
<View
|
||
|
|
android:id="@+id/ststus2"
|
||
|
|
android:layout_width="10dp"
|
||
|
|
android:layout_height="10dp"
|
||
|
|
android:layout_marginStart="4dp"
|
||
|
|
android:background="#FF26D526"
|
||
|
|
app:layout_constraintEnd_toEndOf="@+id/avatar3"
|
||
|
|
app:layout_constraintTop_toTopOf="@+id/avatar3" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/name2"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginStart="10dp"
|
||
|
|
android:text="Nourabloody"
|
||
|
|
android:textColor="#ff222222"
|
||
|
|
android:textSize="18sp"
|
||
|
|
android:textStyle="bold"
|
||
|
|
app:layout_constraintBottom_toTopOf="@+id/gender"
|
||
|
|
app:layout_constraintStart_toEndOf="@+id/avatar3"
|
||
|
|
app:layout_constraintTop_toTopOf="@+id/avatar3" />
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:id="@+id/gender"
|
||
|
|
android:layout_width="20dp"
|
||
|
|
android:layout_height="20dp"
|
||
|
|
android:scaleType="centerCrop"
|
||
|
|
android:src="@mipmap/male_selected"
|
||
|
|
app:layout_constraintBottom_toBottomOf="@+id/avatar3"
|
||
|
|
app:layout_constraintStart_toStartOf="@+id/name2"
|
||
|
|
app:layout_constraintTop_toBottomOf="@+id/name2" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/country"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginStart="5dp"
|
||
|
|
android:background="@drawable/bg_item_discover_age"
|
||
|
|
android:paddingHorizontal="5dp"
|
||
|
|
android:paddingVertical="4dp"
|
||
|
|
android:text="Nourabloody"
|
||
|
|
android:textColor="@color/white"
|
||
|
|
android:textSize="10sp"
|
||
|
|
app:layout_constraintBottom_toBottomOf="@+id/gender"
|
||
|
|
app:layout_constraintStart_toEndOf="@+id/gender"
|
||
|
|
app:layout_constraintTop_toTopOf="@+id/gender" />
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:id="@+id/start_video2"
|
||
|
|
android:layout_width="44dp"
|
||
|
|
android:layout_height="44dp"
|
||
|
|
android:layout_marginTop="10dp"
|
||
|
|
android:scaleType="centerCrop"
|
||
|
|
android:src="@mipmap/video_videocall"
|
||
|
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
|
app:layout_constraintTop_toTopOf="parent" />
|
||
|
|
|
||
|
|
<View
|
||
|
|
android:id="@+id/line"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="1dp"
|
||
|
|
android:layout_marginTop="14dp"
|
||
|
|
android:background="#FFCFD4E0"
|
||
|
|
app:layout_constraintTop_toBottomOf="@+id/avatar3" />
|
||
|
|
|
||
|
|
<androidx.recyclerview.widget.RecyclerView
|
||
|
|
android:id="@+id/tags2"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="50dp"
|
||
|
|
android:layout_marginTop="10dp"
|
||
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
||
|
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
|
app:layout_constraintTop_toBottomOf="@+id/line" />
|
||
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||
|
|
|
||
|
|
<View
|
||
|
|
android:id="@id/view"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="50dp"
|
||
|
|
android:visibility="gone"
|
||
|
|
app:layout_constraintBottom_toBottomOf="parent" />
|
||
|
|
|
||
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||
|
|
android:id="@+id/toolbar"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:minHeight="80dp"
|
||
|
|
android:paddingVertical="16dp"
|
||
|
|
app:layout_constraintBottom_toTopOf="@+id/view">
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:id="@+id/send_pic"
|
||
|
|
android:layout_width="44dp"
|
||
|
|
android:layout_height="44dp"
|
||
|
|
android:src="@mipmap/send_pic"
|
||
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
||
|
|
app:layout_constraintEnd_toStartOf="@+id/send_gift"
|
||
|
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
|
app:layout_constraintTop_toTopOf="parent" />
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:id="@+id/send_gift"
|
||
|
|
android:layout_width="44dp"
|
||
|
|
android:layout_height="44dp"
|
||
|
|
android:src="@mipmap/send_gift"
|
||
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
||
|
|
app:layout_constraintEnd_toStartOf="@+id/view_send"
|
||
|
|
app:layout_constraintStart_toEndOf="@+id/send_pic"
|
||
|
|
app:layout_constraintTop_toTopOf="parent" />
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:id="@+id/view_send"
|
||
|
|
android:layout_width="237dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:background="@drawable/bg_cfd4e0_20"
|
||
|
|
android:gravity="center_vertical|end"
|
||
|
|
android:orientation="horizontal"
|
||
|
|
android:paddingVertical="10dp"
|
||
|
|
android:paddingStart="15dp"
|
||
|
|
android:paddingEnd="6dp"
|
||
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
||
|
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
|
app:layout_constraintStart_toEndOf="@+id/send_gift"
|
||
|
|
app:layout_constraintTop_toTopOf="parent">
|
||
|
|
|
||
|
|
<EditText
|
||
|
|
android:id="@+id/text"
|
||
|
|
android:layout_width="170dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginEnd="10dp"
|
||
|
|
android:background="@null"
|
||
|
|
android:maxLines="3"
|
||
|
|
android:minHeight="30dp"
|
||
|
|
android:textColor="#ff222222"
|
||
|
|
android:textSize="14sp"
|
||
|
|
android:textStyle="bold" />
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:id="@+id/can_send"
|
||
|
|
android:layout_width="32dp"
|
||
|
|
android:layout_height="32dp"
|
||
|
|
android:src="@mipmap/can_send"
|
||
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
||
|
|
app:layout_constraintEnd_toStartOf="@+id/view_send"
|
||
|
|
app:layout_constraintStart_toEndOf="@+id/send_pic"
|
||
|
|
app:layout_constraintTop_toTopOf="parent" />
|
||
|
|
</LinearLayout>
|
||
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||
|
|
|
||
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
||
|
|
android:id="@+id/baseRefreshLayout"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="0dp"
|
||
|
|
android:layout_marginTop="3dp"
|
||
|
|
android:visibility="gone"
|
||
|
|
app:layout_constraintBottom_toTopOf="@+id/toolbar"
|
||
|
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
|
app:layout_constraintTop_toBottomOf="@+id/chat_top">
|
||
|
|
|
||
|
|
<androidx.recyclerview.widget.RecyclerView
|
||
|
|
android:id="@+id/baseRecyclerView"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:overScrollMode="never" />
|
||
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
||
|
|
|
||
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||
|
|
</layout>
|