Commit 08c57020 by 霍志良

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

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