2026-01-04 08:58:09 +08:00
|
|
|
<?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"
|
|
|
|
|
android:id="@+id/main"
|
|
|
|
|
tools:context="GroupChatSettingsActivity">
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:paddingHorizontal="@dimen/dp_20">
|
|
|
|
|
|
|
|
|
|
<com.xscm.moduleutil.widget.CustomTopBar
|
|
|
|
|
android:id="@+id/top_bar"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
|
|
<com.xscm.moduleutil.widget.CircularImage
|
|
|
|
|
android:id="@+id/im_group"
|
|
|
|
|
android:layout_width="@dimen/dp_60"
|
|
|
|
|
android:layout_height="@dimen/dp_60"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:layout_marginTop="@dimen/dp_20"
|
|
|
|
|
android:src="@mipmap/ic_launcher_app"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/top_bar"
|
|
|
|
|
app:riv_oval="true" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/group_name"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginStart="@dimen/dp_15"
|
|
|
|
|
android:textSize="@dimen/sp_15"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/im_group"
|
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/im_group"
|
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/im_group"
|
|
|
|
|
tools:text="群聊名称" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tv_group_member"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="@dimen/dp_15"
|
|
|
|
|
android:text="群聊成员"
|
|
|
|
|
android:textColor="@color/black"
|
|
|
|
|
android:textSize="@dimen/sp_15"
|
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
app:layout_constraintStart_toStartOf="@id/im_group"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/im_group" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tv_group_count"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="查看成员 >"
|
|
|
|
|
android:textColor="@color/color_999999"
|
|
|
|
|
android:textSize="@dimen/sp_15"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="@id/tv_group_member" />
|
|
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
|
android:id="@+id/rv_group_member"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="@dimen/dp_5"
|
|
|
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/tv_group_member"
|
|
|
|
|
tools:itemCount="1"
|
|
|
|
|
tools:listitem="@layout/item_group_member" />
|
|
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
|
android:id="@+id/ev_group_name"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="@dimen/dp_45"
|
|
|
|
|
android:layout_marginTop="@dimen/dp_5"
|
|
|
|
|
android:background="@drawable/bg_r100_hui"
|
|
|
|
|
android:gravity="center|start"
|
|
|
|
|
android:paddingStart="@dimen/dp_20"
|
|
|
|
|
tools:text="群聊名称"
|
|
|
|
|
android:textColor="@color/color_999999"
|
|
|
|
|
android:textSize="@dimen/sp_15"
|
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
app:layout_constraintStart_toStartOf="@id/im_group"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/rv_group_member" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tv_group_announcement"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="@dimen/dp_15"
|
|
|
|
|
android:text="群聊公告"
|
|
|
|
|
android:textColor="@color/black"
|
|
|
|
|
android:textSize="@dimen/sp_15"
|
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
app:layout_constraintStart_toStartOf="@id/tv_group_member"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/ev_group_name" />
|
|
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
|
android:id="@+id/rl_group_announcement"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="@dimen/dp_150"
|
|
|
|
|
android:layout_marginTop="@dimen/dp_10"
|
|
|
|
|
android:background="@drawable/bg_r100_hui"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/tv_group_announcement">
|
|
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
|
android:id="@+id/et_g"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="@dimen/dp_140"
|
|
|
|
|
android:layout_marginStart="@dimen/dp_16"
|
|
|
|
|
android:layout_marginTop="@dimen/dp_10"
|
|
|
|
|
android:layout_marginEnd="@dimen/dp_16"
|
|
|
|
|
android:layout_marginBottom="@dimen/dp_10"
|
|
|
|
|
android:background="@android:color/transparent"
|
|
|
|
|
android:gravity="left|top"
|
|
|
|
|
android:hint="设置房间公告"
|
|
|
|
|
android:textColor="#333333"
|
|
|
|
|
android:textColorHint="@color/color_FF666666"
|
|
|
|
|
android:textSize="@dimen/sp_15" />
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
2026-01-20 19:20:06 +08:00
|
|
|
<RelativeLayout
|
|
|
|
|
android:id="@+id/rl_do_not_disturb"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="@dimen/dp_15"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/rl_group_announcement">
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tv_do_not_disturb"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
|
android:layout_marginTop="@dimen/dp_15"
|
|
|
|
|
android:text="消息免打扰"
|
|
|
|
|
android:textColor="@color/black"
|
|
|
|
|
android:textSize="@dimen/sp_15"
|
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
|
|
<Switch
|
|
|
|
|
android:id="@+id/swit_do_not_disturb"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
|
tools:ignore="UseSwitchCompatOrMaterialXml" />
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
2026-01-04 08:58:09 +08:00
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/ll_group"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2026-01-20 19:20:06 +08:00
|
|
|
android:layout_marginTop="@dimen/dp_10"
|
2026-01-04 08:58:09 +08:00
|
|
|
android:orientation="vertical"
|
2026-01-20 19:20:06 +08:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/rl_do_not_disturb">
|
2026-01-04 08:58:09 +08:00
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tv_group_ban"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
|
android:layout_marginTop="@dimen/dp_15"
|
|
|
|
|
android:text="全员禁言"
|
|
|
|
|
android:textColor="@color/black"
|
|
|
|
|
android:textSize="@dimen/sp_15"
|
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
|
|
<Switch
|
|
|
|
|
android:id="@+id/swit_jy"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
|
tools:ignore="UseSwitchCompatOrMaterialXml" />
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tv_confirm"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="@dimen/dp_40"
|
|
|
|
|
android:layout_below="@+id/tv_group_ban"
|
|
|
|
|
android:layout_marginTop="@dimen/dp_10"
|
|
|
|
|
android:background="@drawable/cs"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:text="确认保存"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:textSize="@dimen/sp_14" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
|
</layout>
|