群聊修改
This commit is contained in:
127
app/src/main/res/layout/activity_team_manager.xml
Normal file
127
app/src/main/res/layout/activity_team_manager.xml
Normal file
@@ -0,0 +1,127 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright (c) 2022 NetEase, Inc. All rights reserved.
|
||||
~ Use of this source code is governed by a MIT license that can be
|
||||
~ found in the LICENSE file.
|
||||
-->
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/color_fffafa"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.netease.yunxin.kit.common.ui.widgets.BackTitleBar
|
||||
android:id="@+id/title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:titleText="@string/teamsetting_other_teammanager"
|
||||
app:titleTextColor="@color/color_333333" />
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@android:color/white"
|
||||
android:paddingStart="@dimen/dp_15"
|
||||
android:paddingEnd="@dimen/dp_15">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_tips"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_15"
|
||||
android:text="@string/team_owner"
|
||||
android:textColor="@color/color_b8b5be"
|
||||
android:textSize="@dimen/sp_14" />
|
||||
|
||||
<com.netease.yunxin.kit.common.ui.widgets.ContactAvatarView
|
||||
android:id="@+id/avatar_view"
|
||||
android:layout_width="@dimen/dimen_45_dp"
|
||||
android:layout_height="@dimen/dimen_45_dp"
|
||||
android:layout_below="@+id/tv_tips"
|
||||
android:layout_marginTop="@dimen/dp_13"
|
||||
app:avatarCorner="@dimen/dimen_45_dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignTop="@+id/avatar_view"
|
||||
android:layout_alignBottom="@+id/avatar_view"
|
||||
android:layout_marginStart="@dimen/dp_15"
|
||||
android:layout_toEndOf="@+id/avatar_view"
|
||||
android:gravity="center"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/sp_16" />
|
||||
|
||||
<View
|
||||
android:id="@+id/line"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_0_5"
|
||||
android:layout_below="@+id/avatar_view"
|
||||
android:layout_marginTop="@dimen/dp_10"
|
||||
android:background="@color/color_ebe8F1" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_titlemanager"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/line"
|
||||
android:layout_marginTop="@dimen/dp_15"
|
||||
android:textColor="@color/color_b8b5be"
|
||||
android:textSize="@dimen/sp_14" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recyclerview_manager"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/tv_titlemanager"
|
||||
android:visibility="gone" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/layout_managerempty"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_125"
|
||||
android:layout_below="@+id/tv_titlemanager"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_32"
|
||||
android:layout_height="@dimen/dp_32"
|
||||
android:src="@mipmap/ic_teammanager_empty" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/str_teammanager_not"
|
||||
android:textColor="@color/color_b8b5be"
|
||||
android:textSize="@dimen/sp_14" />
|
||||
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvteammembers"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp_15"
|
||||
android:layout_marginTop="@dimen/dp_20"
|
||||
android:layout_marginEnd="@dimen/dp_15"
|
||||
android:lineSpacingExtra="@dimen/dp_5"
|
||||
android:text="@string/str_teammanager_tips"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/text_size_14"
|
||||
android:textStyle="bold" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
130
app/src/main/res/layout/activity_teamaddmanager.xml
Normal file
130
app/src/main/res/layout/activity_teamaddmanager.xml
Normal file
@@ -0,0 +1,130 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright (c) 2022 NetEase, Inc. All rights reserved.
|
||||
~ Use of this source code is governed by a MIT license that can be
|
||||
~ found in the LICENSE file.
|
||||
-->
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/layout_selectorroot"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@android:color/white"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.netease.yunxin.kit.common.ui.widgets.BackTitleBar
|
||||
android:id="@+id/title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_1_dp"
|
||||
android:background="@color/color_f7f7f7" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_40_dp"
|
||||
android:layout_marginStart="@dimen/dimen_15_dp"
|
||||
android:layout_marginTop="@dimen/dimen_10_dp"
|
||||
android:layout_marginEnd="@dimen/dimen_15_dp"
|
||||
android:background="@drawable/fun_bg_addfriends_verifymsg"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/edit_selector_friends"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="0.9"
|
||||
android:background="@null"
|
||||
android:drawableStart="@drawable/fun_ic_conversation_search"
|
||||
android:drawablePadding="@dimen/dimen_5_dp"
|
||||
android:hint="@string/fun_contact_createteam_tips"
|
||||
android:imeOptions="actionSearch"
|
||||
android:paddingStart="@dimen/dimen_15_dp"
|
||||
android:singleLine="true"
|
||||
android:textColorHint="@color/color_cccccc"
|
||||
android:textCursorDrawable="@null" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/ic_clean_edit"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_weight="0.1"
|
||||
android:visibility="gone"
|
||||
app:srcCompat="@drawable/ic_selector_close" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:scrollbars="none">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rv_selected"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dimen_20_dp"
|
||||
android:paddingHorizontal="@dimen/dimen_15_dp" />
|
||||
|
||||
<!-- 群全部成员-->
|
||||
<LinearLayout
|
||||
android:id="@+id/layout_teammemberlist"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dimen_15_dp"
|
||||
android:layout_marginTop="@dimen/dimen_20_dp"
|
||||
android:text="@string/team_member_title"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/text_size_14" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recycler_member"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dimen_20_dp"
|
||||
app:showIndexBar="false"
|
||||
app:showSelector="true" />
|
||||
</LinearLayout>
|
||||
|
||||
<!--查找结果-->
|
||||
<LinearLayout
|
||||
android:id="@+id/layout_searchlist"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dimen_15_dp"
|
||||
android:layout_marginTop="@dimen/dimen_20_dp"
|
||||
android:text="@string/fun_searchresult_txt"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/text_size_14"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recycler_searchlistView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dimen_10_dp"
|
||||
app:showIndexBar="false"
|
||||
app:showSelector="true" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
</LinearLayout>
|
||||
@@ -238,6 +238,40 @@
|
||||
android:background="@color/color_f4f4f4" />
|
||||
</LinearLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_40"
|
||||
android:layout_marginTop="@dimen/dp_5">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_10"
|
||||
android:layout_marginEnd="@dimen/dp_60"
|
||||
android:background="@android:color/transparent"
|
||||
android:ellipsize="end"
|
||||
android:singleLine="true"
|
||||
android:text="@string/teamsetting_other_teamaddfriends"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/text_size_16" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_teamallowaddfriends"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="end|center_vertical"
|
||||
android:text="@string/teamsetting_other_teamallow"
|
||||
android:textColor="@color/color_7f7b81"
|
||||
android:textSize="@dimen/sp_14" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_1"
|
||||
android:layout_marginTop="@dimen/dp_15"
|
||||
android:background="@color/color_f4f4f4" />
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/flcleanhistory"
|
||||
android:layout_width="match_parent"
|
||||
@@ -295,6 +329,35 @@
|
||||
android:src="@drawable/ic_frame_mine_right_arrow" />
|
||||
</FrameLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_1"
|
||||
android:background="@color/color_f4f4f4" />
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/flteammanager"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_54">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvManager"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginEnd="64dp"
|
||||
android:gravity="center_vertical"
|
||||
android:singleLine="true"
|
||||
android:text="@string/teamsetting_other_teammanager"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/sp_16" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="end|center_vertical"
|
||||
android:src="@drawable/ic_frame_mine_right_arrow" />
|
||||
</FrameLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_1"
|
||||
|
||||
45
app/src/main/res/layout/item_team_manager.xml
Normal file
45
app/src/main/res/layout/item_team_manager.xml
Normal file
@@ -0,0 +1,45 @@
|
||||
<?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:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@android:color/white">
|
||||
|
||||
<com.netease.yunxin.kit.common.ui.widgets.ContactAvatarView
|
||||
android:id="@+id/item_avatar"
|
||||
android:layout_width="@dimen/dimen_45_dp"
|
||||
android:layout_height="@dimen/dimen_45_dp"
|
||||
android:layout_marginTop="@dimen/dp_13"
|
||||
android:layout_marginBottom="@dimen/dp_10"
|
||||
app:avatarCorner="@dimen/dimen_45_dp"
|
||||
app:layout_constraintBottom_toTopOf="@+id/item_line"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/item_username"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp_15"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/sp_16"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/item_avatar"
|
||||
app:layout_constraintStart_toEndOf="@+id/item_avatar"
|
||||
app:layout_constraintTop_toTopOf="@+id/item_avatar" />
|
||||
|
||||
<View
|
||||
android:id="@+id/item_line"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_1"
|
||||
android:background="@color/color_ebe8F1"
|
||||
app:layout_constraintBottom_toBottomOf="parent" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_delete"
|
||||
android:layout_width="@dimen/dp_20"
|
||||
android:layout_height="@dimen/dp_20"
|
||||
android:src="@mipmap/ic_teammanager_delete"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/item_avatar"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@+id/item_avatar" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
51
app/src/main/res/layout/item_team_members_selector.xml
Normal file
51
app/src/main/res/layout/item_team_members_selector.xml
Normal file
@@ -0,0 +1,51 @@
|
||||
<?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:id="@+id/root_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/view_normal_selector">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatRadioButton
|
||||
android:id="@+id/rb_selector"
|
||||
style="@style/FunSelectorRadioBtn"
|
||||
android:layout_width="@dimen/dimen_18_dp"
|
||||
android:layout_height="@dimen/dimen_18_dp"
|
||||
android:layout_marginStart="@dimen/dp_12"
|
||||
android:clickable="false"
|
||||
android:visibility="visible"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<com.netease.yunxin.kit.common.ui.widgets.ContactAvatarView
|
||||
android:id="@+id/avatar_view"
|
||||
android:layout_width="@dimen/dimen_45_dp"
|
||||
android:layout_height="@dimen/dimen_45_dp"
|
||||
android:layout_marginLeft="@dimen/dimen_12_dp"
|
||||
android:layout_marginTop="@dimen/dimen_10_dp"
|
||||
android:layout_marginBottom="@dimen/dimen_10_dp"
|
||||
app:avatarCorner="@dimen/dimen_45_dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toRightOf="@+id/rb_selector"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_goneMarginLeft="0dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dimen_12_dp"
|
||||
android:layout_marginRight="@dimen/dimen_10_dp"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/text_size_16"
|
||||
app:layout_constrainedWidth="true"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/avatar_view"
|
||||
app:layout_constraintLeft_toRightOf="@+id/avatar_view"
|
||||
app:layout_constraintTop_toTopOf="@+id/avatar_view" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -39,7 +39,6 @@
|
||||
android:layout_marginEnd="@dimen/dp_15"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:text="dfff"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/text_size_16"
|
||||
android:textStyle="bold"
|
||||
|
||||
Reference in New Issue
Block a user