|
|
@@ -0,0 +1,147 @@
|
|
|
+<?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="wrap_content"
|
|
|
+ tools:background="@color/black">
|
|
|
+
|
|
|
+ <com.adealink.frame.image.view.NetworkImageView
|
|
|
+ android:id="@+id/iv_bg"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="@dimen/playmate_detail_header_height"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <!--基础信息 -->
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:id="@+id/cl_user_info"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginBottom="12dp"
|
|
|
+ android:paddingHorizontal="16dp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/iv_bg"
|
|
|
+ app:layout_constraintStart_toStartOf="@id/iv_bg">
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatTextView
|
|
|
+ android:id="@+id/tv_name"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:ellipsize="end"
|
|
|
+ android:fontFamily="@font/poppins_semibold"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:singleLine="true"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="18sp"
|
|
|
+ app:layout_constrainedWidth="true"
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/v_gender"
|
|
|
+ app:layout_constraintHorizontal_bias="0"
|
|
|
+ app:layout_constraintHorizontal_chainStyle="packed"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ tools:text="Super Beautiful Girl Super Beautiful Girl Super Beautiful Girl" />
|
|
|
+
|
|
|
+ <com.adealink.weparty.module.profile.widget.GenderView
|
|
|
+ android:id="@+id/v_gender"
|
|
|
+ style="@style/CommonGenderView"
|
|
|
+ android:layout_marginEnd="24dp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/tv_name"
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/v_barrier_end"
|
|
|
+ app:layout_constraintStart_toEndOf="@id/tv_name"
|
|
|
+ app:layout_constraintTop_toTopOf="@id/tv_name" />
|
|
|
+
|
|
|
+ <!--用户ID-->
|
|
|
+ <androidx.appcompat.widget.AppCompatTextView
|
|
|
+ android:id="@+id/tv_user_id"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="2dp"
|
|
|
+ android:fontFamily="@font/poppins_semibold"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:textColor="@color/color_FFC9CDD4"
|
|
|
+ android:textSize="12sp"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/tv_name"
|
|
|
+ tools:text="ID 12345678" />
|
|
|
+
|
|
|
+ <!--位置-->
|
|
|
+ <androidx.appcompat.widget.AppCompatImageView
|
|
|
+ android:id="@+id/iv_location"
|
|
|
+ android:layout_width="16dp"
|
|
|
+ android:layout_height="16dp"
|
|
|
+ android:layout_marginStart="12dp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/tv_user_id"
|
|
|
+ app:layout_constraintStart_toEndOf="@id/tv_user_id"
|
|
|
+ app:layout_constraintTop_toTopOf="@id/tv_user_id"
|
|
|
+ app:srcCompat="@drawable/common_location_ic" />
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatTextView
|
|
|
+ android:id="@+id/tv_location"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:fontFamily="@font/poppins_semibold"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:textColor="@color/color_FFC9CDD4"
|
|
|
+ android:textSize="12sp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/iv_location"
|
|
|
+ app:layout_constraintStart_toEndOf="@id/iv_location"
|
|
|
+ app:layout_constraintTop_toTopOf="@id/iv_location"
|
|
|
+ tools:text="Jakarta Timur" />
|
|
|
+
|
|
|
+ <!--语言-->
|
|
|
+ <androidx.appcompat.widget.AppCompatImageView
|
|
|
+ android:id="@+id/iv_language"
|
|
|
+ android:layout_width="16dp"
|
|
|
+ android:layout_height="16dp"
|
|
|
+ android:layout_marginTop="2dp"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/tv_user_id"
|
|
|
+ app:srcCompat="@drawable/common_language_ic" />
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatTextView
|
|
|
+ android:id="@+id/tv_lanauge"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="4dp"
|
|
|
+ android:fontFamily="@font/poppins_semibold"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:textColor="@color/color_FFC9CDD4"
|
|
|
+ android:textSize="12sp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/iv_language"
|
|
|
+ app:layout_constraintStart_toEndOf="@id/iv_language"
|
|
|
+ app:layout_constraintTop_toTopOf="@id/iv_language"
|
|
|
+ tools:text="Indonesia/English/中文" />
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.Barrier
|
|
|
+ android:id="@+id/v_barrier_end"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ app:barrierDirection="start"
|
|
|
+ app:constraint_referenced_ids="iv_evaluate_star" />
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatImageView
|
|
|
+ android:id="@+id/iv_evaluate_star"
|
|
|
+ android:layout_width="18dp"
|
|
|
+ android:layout_height="18dp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/tv_evaluate"
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/tv_evaluate"
|
|
|
+ app:layout_constraintTop_toTopOf="@id/tv_evaluate"
|
|
|
+ app:srcCompat="@drawable/common_evaluate_star_selected_ic" />
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatTextView
|
|
|
+ android:id="@+id/tv_evaluate"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:fontFamily="@font/poppins_semibold"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="18sp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ tools:text="4.2" />
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+</androidx.constraintlayout.widget.ConstraintLayout>
|