177 lines
6.7 KiB
XML
177 lines
6.7 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"
|
|
android:id="@+id/main"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fitsSystemWindows="true">
|
|
|
|
<FrameLayout
|
|
android:id="@+id/fragment_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent" />
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/cl_profile"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<androidx.constraintlayout.utils.widget.ImageFilterView
|
|
android:id="@+id/ifv_avatar"
|
|
android:layout_width="50dp"
|
|
android:layout_height="50dp"
|
|
android:layout_marginStart="20dp"
|
|
android:layout_marginTop="55dp"
|
|
android:src="@drawable/ic_avatar"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:roundPercent="0.3" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_nickname"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="15dp"
|
|
android:text="糕菜菜"
|
|
android:textColor="@color/black"
|
|
android:textSize="19sp"
|
|
android:textStyle="bold"
|
|
app:layout_constraintStart_toEndOf="@id/ifv_avatar"
|
|
app:layout_constraintTop_toTopOf="@id/ifv_avatar" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_id"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="kid: kaixed"
|
|
android:textSize="12sp"
|
|
app:layout_constraintBottom_toBottomOf="@id/ifv_avatar"
|
|
app:layout_constraintStart_toStartOf="@id/tv_nickname"
|
|
app:layout_constraintTop_toBottomOf="@id/tv_nickname" />
|
|
|
|
<ImageView
|
|
android:id="@+id/cl_profile_right_arrow"
|
|
android:layout_width="16dp"
|
|
android:layout_height="16dp"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginEnd="15dp"
|
|
android:src="@drawable/icon_arrow_right"
|
|
app:layout_constraintBottom_toBottomOf="@id/ifv_avatar"
|
|
app:layout_constraintEnd_toEndOf="parent" />
|
|
|
|
<ImageView
|
|
android:layout_width="16dp"
|
|
android:layout_height="16dp"
|
|
android:layout_marginEnd="15dp"
|
|
android:src="@drawable/icon_qrcode"
|
|
app:layout_constraintBottom_toBottomOf="@id/cl_profile_right_arrow"
|
|
app:layout_constraintEnd_toStartOf="@id/cl_profile_right_arrow"
|
|
app:layout_constraintTop_toTopOf="@id/cl_profile_right_arrow" />
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/divider_height"
|
|
android:layout_marginTop="15dp"
|
|
android:background="#D5D5D5"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/ifv_avatar" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:id="@+id/ll_setting_items"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:background="@color/gray"
|
|
android:orientation="vertical"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/cl_profile">
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/divider_height"
|
|
android:layout_marginTop="8dp"
|
|
android:background="#D5D5D5" />
|
|
|
|
|
|
<com.kaixed.kchat.ui.widget.CustomItem
|
|
android:id="@+id/ci_service"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:itemLeftIcon="@drawable/ic_mine_pay"
|
|
app:itemName="服务" />
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/divider_height"
|
|
android:background="#D5D5D5" />
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/divider_height"
|
|
android:layout_marginTop="8dp"
|
|
android:background="#D5D5D5" />
|
|
|
|
<com.kaixed.kchat.ui.widget.CustomItem
|
|
android:id="@+id/ci_favorites"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:itemLeftIcon="@drawable/ic_mine_favorites"
|
|
app:itemName="收藏" />
|
|
|
|
|
|
<com.kaixed.kchat.ui.widget.CustomItem
|
|
android:id="@+id/ci_friend_circle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:isTopDividerVisible="true"
|
|
app:itemLeftIcon="@drawable/ic_mine_album"
|
|
app:itemName="朋友圈" />
|
|
|
|
|
|
<com.kaixed.kchat.ui.widget.CustomItem
|
|
android:id="@+id/ci_card"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:isTopDividerVisible="true"
|
|
app:itemLeftIcon="@drawable/ic_mine_card"
|
|
app:itemName="卡包" />
|
|
|
|
|
|
<com.kaixed.kchat.ui.widget.CustomItem
|
|
android:id="@+id/ci_emoji"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:isTopDividerVisible="true"
|
|
app:itemLeftIcon="@drawable/ic_mine_emoji"
|
|
app:itemName="表情" />
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/divider_height"
|
|
android:background="#D5D5D5" />
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/divider_height"
|
|
android:layout_marginTop="8dp"
|
|
android:background="#D5D5D5" />
|
|
|
|
|
|
<com.kaixed.kchat.ui.widget.CustomItem
|
|
android:id="@+id/ci_setting"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:isTopDividerVisible="false"
|
|
app:itemLeftIcon="@drawable/ic_mine_setting"
|
|
app:itemName="设置" />
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/divider_height"
|
|
android:background="#D5D5D5" />
|
|
</LinearLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |