Commit c2bd38a5 by 霍志良

feat:群聊结束相关UI

parent 9af4760a
......@@ -207,8 +207,9 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
private RelativeLayout constraint_ll;
private LinearLayout ll_info_detail;
private RelativeLayout rela_zixun;
protected RelativeLayout rela_zixun;
private LinearLayout team_over_end;
private RelativeLayout textMessageLayout;
private ValueAnimator anim_out;
private ObjectAnimator sourceLayoutAnim;
private ValueAnimator anim_in;
......@@ -344,6 +345,8 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
ll_info_detail = rootView.findViewById(R.id.ll_info_detail);
tv_doctor_name = rootView.findViewById(R.id.tv_doctor_name);
rl_contain = rootView.findViewById(R.id.rl_contain);
team_over_end = rootView.findViewById(R.id.team_over_end);
textMessageLayout = rootView.findViewById(R.id.textMessageLayout);
messageListView.setItemAnimator(null);
//和助理私聊时的常用语逻辑
// rl_common_question_enter = rootView.findViewById(R.id.rl_common_question);
......@@ -374,11 +377,12 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
} else {
initView();
}
//群聊则隐藏立即咨询按钮
//如果是群聊
if (SessionTypeEnum.Team==sessionType){
rela_zixun.setVisibility(View.GONE);
titleBar.setTitleRightDraw(null);
// textMessageLayout.setVisibility(View.GONE);
// team_over_end.setVisibility(View.VISIBLE);
}
}
/**
......
package com.yidianling.uikit.business.session.fragment;
import android.os.Bundle;
import android.util.Log;
import com.netease.nimlib.sdk.msg.model.IMMessage;
......@@ -54,6 +55,4 @@ public class YDLTeamMessageFragment extends YDLMessageFragment {
Log.e("hzs","-------------setTeam------------TeammessageFragment");
this.team = team;
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:exitFadeDuration="@android:integer/config_shortAnimTime">
<corners
android:radius="@dimen/dp_4"/>
<solid android:color="#E7ECF0" />
</shape>
\ No newline at end of file
......@@ -6,6 +6,7 @@
android:orientation="vertical">
<include layout="@layout/im_nim_message_activity_text_layout" />
<include layout="@layout/im_nim_message_activity_team_over_layout" />
<com.yidianling.nimbase.business.session.emoji.EmoticonPickerView
android:id="@+id/emoticon_picker_view"
......
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_72"
tools:ignore="MissingDefaultResource"
android:gravity="center"
android:background="@drawable/im_background_team_over"
android:visibility="visible"
android:id="@+id/team_over_end"
android:layout_marginStart="@dimen/platform_dp_40"
android:layout_marginEnd="@dimen/platform_dp_40"
android:layout_marginBottom="@dimen/platform_dp_12"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="群聊已结束,如有问题请联系个案管理师"
android:textColor="#0c1d31"
android:textSize="@dimen/im_text_size_16"
>
</TextView>
</LinearLayout>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment