Commit 08c57020 by 霍志良

feat:消息对其、部分颜色修改

parent 2228d086
package com.yidianling.im.session.viewholder; package com.yidianling.im.session.viewholder;
import android.view.View;
import android.widget.TextView; import android.widget.TextView;
import com.yidianling.im.R; import com.yidianling.im.R;
...@@ -39,6 +40,7 @@ public class MsgViewHolderLingxiAnswerQuestion extends MsgViewHolderBase { ...@@ -39,6 +40,7 @@ public class MsgViewHolderLingxiAnswerQuestion extends MsgViewHolderBase {
@Override @Override
protected void bindContentView() { protected void bindContentView() {
avatarLeft.setVisibility(View.INVISIBLE);
customattachLingxiAnswerQuestion = ((CustomAttachLingxiAnswerQuestion) message.getAttachment()); customattachLingxiAnswerQuestion = ((CustomAttachLingxiAnswerQuestion) message.getAttachment());
itemBeans=customattachLingxiAnswerQuestion.answers; itemBeans=customattachLingxiAnswerQuestion.answers;
sb=new StringBuffer(); sb=new StringBuffer();
......
...@@ -96,6 +96,7 @@ public class MsgViewHolderLingxiWhichQuestion extends MsgViewHolderBase implemen ...@@ -96,6 +96,7 @@ public class MsgViewHolderLingxiWhichQuestion extends MsgViewHolderBase implemen
@Override @Override
protected void bindContentView() { protected void bindContentView() {
avatarRight.setVisibility(View.INVISIBLE);
ImIn.INSTANCE.setImMessage(message); ImIn.INSTANCE.setImMessage(message);
customAttachLingxiWhichQuestion = ((CustomAttachLingxiWhichQuestion) message.getAttachment()); customAttachLingxiWhichQuestion = ((CustomAttachLingxiWhichQuestion) message.getAttachment());
examId = customAttachLingxiWhichQuestion.examId; examId = customAttachLingxiWhichQuestion.examId;
......
...@@ -58,8 +58,8 @@ public abstract class MsgViewHolderBase extends RecyclerViewHolder<BaseMultiItem ...@@ -58,8 +58,8 @@ public abstract class MsgViewHolderBase extends RecyclerViewHolder<BaseMultiItem
protected TextView readReceiptTextView; protected TextView readReceiptTextView;
protected TextView ackMsgTextView; protected TextView ackMsgTextView;
private HeadImageView avatarLeft; public HeadImageView avatarLeft;
private HeadImageView avatarRight; public HeadImageView avatarRight;
public ImageView nameIconView; public ImageView nameIconView;
...@@ -424,11 +424,11 @@ public abstract class MsgViewHolderBase extends RecyclerViewHolder<BaseMultiItem ...@@ -424,11 +424,11 @@ public abstract class MsgViewHolderBase extends RecyclerViewHolder<BaseMultiItem
} }
} }
public void setAvatarLeftInVisibity(){ public void setAvatarLeftInVisibity() {
avatarLeft.setVisibility(View.INVISIBLE); avatarLeft.setVisibility(View.INVISIBLE);
} }
public void setAvatarRightInVisibity(){ public void setAvatarRightInVisibity() {
avatarRight.setVisibility(View.INVISIBLE); avatarRight.setVisibility(View.INVISIBLE);
} }
...@@ -448,7 +448,7 @@ public abstract class MsgViewHolderBase extends RecyclerViewHolder<BaseMultiItem ...@@ -448,7 +448,7 @@ public abstract class MsgViewHolderBase extends RecyclerViewHolder<BaseMultiItem
if (isReceivedMessage()) { if (isReceivedMessage()) {
audioRightSmallTip.setVisibility(View.VISIBLE); audioRightSmallTip.setVisibility(View.VISIBLE);
audioLeftSmallTip.setVisibility(View.GONE); audioLeftSmallTip.setVisibility(View.GONE);
}else { } else {
audioRightSmallTip.setVisibility(View.GONE); audioRightSmallTip.setVisibility(View.GONE);
audioLeftSmallTip.setVisibility(View.VISIBLE); audioLeftSmallTip.setVisibility(View.VISIBLE);
} }
......
...@@ -18,6 +18,8 @@ ...@@ -18,6 +18,8 @@
app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintLeft_toLeftOf="parent"
tools:text="请问是发生了什么事情导致的呢?(多选)?" tools:text="请问是发生了什么事情导致的呢?(多选)?"
android:textSize="@dimen/im_text_size_17" android:textSize="@dimen/im_text_size_17"
android:includeFontPadding="false"
android:lineSpacingExtra="3dip"
android:textColor="@color/im_color_242424" android:textColor="@color/im_color_242424"
android:paddingBottom="@dimen/platform_dp_16" android:paddingBottom="@dimen/platform_dp_16"
> >
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android" <TextView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/textViewAlreadyRead" android:id="@+id/textViewAlreadyRead"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="bottom" android:layout_gravity="bottom"
android:layout_marginBottom="3dip"
android:background="@color/im_transparent"
android:layout_marginLeft="2dp" android:layout_marginLeft="2dp"
android:layout_marginRight="2dp" android:layout_marginRight="2dp"
android:text="@string/im_readed" android:layout_marginBottom="3dip"
android:textColor="#666666" android:background="@color/im_transparent"
android:textSize="12sp" android:text="@string/im_readed"
android:visibility="gone" android:textColor="#999999"
tools:visibility="visible" android:textSize="12sp"
/> android:visibility="gone"
tools:visibility="visible" />
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