update 修正聊天页在线离线状态
update 聊天页长按删除功能
This commit is contained in:
@@ -270,13 +270,18 @@ public class PDLiveConversationActivity extends AbsActivity implements View.OnCl
|
||||
ImgLoader.display(mContext, data.getUser().getAvatar(), ViewUtils.findViewById(card, R.id.rc_conversation_portrait, ImageView.class));
|
||||
ViewUtils.findViewById(card, R.id.userName, TextView.class).setText(data.getUser().getUserNicename());
|
||||
ViewUtils.findViewById(card, R.id.sign, TextView.class).setText(data.getUser().getSignature());
|
||||
if (data.getInfo().getRongOnline() == 1) {
|
||||
if (data.getInfo().getRongOnline() == 0) {
|
||||
ViewUtils.findViewById(card, R.id.user_status, TextView.class).setText(R.string.activity_msg_chat_top_status_online);
|
||||
ViewUtils.findViewById(card, R.id.userStatusIcon, ImageView.class).setImageResource(R.mipmap.icon_green);
|
||||
} else {
|
||||
ViewUtils.findViewById(card, R.id.user_status, TextView.class).setText(R.string.activity_msg_chat_top_status_offline);
|
||||
ViewUtils.findViewById(card, R.id.userStatusIcon, ImageView.class).setImageResource(R.mipmap.icon_gray);
|
||||
}
|
||||
if("C".equals(data.getUser().getType())){
|
||||
ViewUtils.findViewById(card,R.id.user_auth_status).setVisibility(View.VISIBLE);
|
||||
}else{
|
||||
ViewUtils.findViewById(card,R.id.user_auth_status).setVisibility(View.GONE);
|
||||
}
|
||||
showBanner();
|
||||
showTag();
|
||||
if (data.getUser().getAttention() == 0) {
|
||||
|
||||
@@ -94,6 +94,16 @@
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<pl.droidsonroids.gif.GifImageView
|
||||
android:id="@+id/liveStatus"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginTop="-10dp"
|
||||
android:src="@mipmap/icon_liveing_cn"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/rc_conversation_portrait" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<TextView
|
||||
@@ -132,6 +142,14 @@
|
||||
android:layout_gravity="top"
|
||||
android:layout_marginStart="5dp"
|
||||
android:src="@mipmap/icon_green" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/user_auth_status"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:srcCompat="@mipmap/ic_chat_auth"
|
||||
tools:layout_editor_absoluteX="124dp"
|
||||
tools:layout_editor_absoluteY="17dp" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
@@ -182,7 +200,6 @@
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="13sp"
|
||||
app:autoSizeMaxTextSize="13sp"
|
||||
|
||||
app:autoSizeMinTextSize="3sp"
|
||||
app:autoSizeStepGranularity="1sp"
|
||||
app:autoSizeTextType="uniform"
|
||||
@@ -217,6 +234,8 @@
|
||||
app:layout_constraintStart_toStartOf="@+id/avatar_list"
|
||||
tools:itemCount="9"
|
||||
tools:listitem="@layout/view_msg_chat_top_tag" />
|
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
BIN
main/src/main/res/mipmap-b+en+us/ic_chat_auth.png
Normal file
BIN
main/src/main/res/mipmap-b+en+us/ic_chat_auth.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
BIN
main/src/main/res/mipmap-xxhdpi/ic_chat_auth.png
Normal file
BIN
main/src/main/res/mipmap-xxhdpi/ic_chat_auth.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
Reference in New Issue
Block a user