收藏房间

This commit is contained in:
oujunhui
2020-04-20 20:57:12 +08:00
parent f7f06a3ee9
commit 100e73555c
19 changed files with 138 additions and 54 deletions

View File

@@ -81,8 +81,8 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/message_item_name_layout"
android:layout_toLeftOf="@id/message_item_portrait_right"
android:layout_toRightOf="@id/message_item_portrait_left">
android:layout_toStartOf="@id/message_item_portrait_right"
android:layout_toEndOf="@id/message_item_portrait_left">
<LinearLayout
android:id="@+id/message_item_body"

View File

@@ -92,7 +92,7 @@ public class MsgViewHolderAudio extends MsgViewHolderBase {
containerView.setBackgroundResource(NimUIKitImpl.getOptions().messageLeftBackground);
containerView.setPadding(ScreenUtil.dip2px(15), ScreenUtil.dip2px(8), ScreenUtil.dip2px(10), ScreenUtil.dip2px(8));
animationView.setBackgroundResource(R.drawable.nim_audio_animation_list_left);
durationLabel.setTextColor(Color.BLACK);
durationLabel.setTextColor(Color.parseColor("#522f0c"));
} else {
setGravity(animationView, Gravity.RIGHT | Gravity.CENTER_VERTICAL);
@@ -102,7 +102,7 @@ public class MsgViewHolderAudio extends MsgViewHolderBase {
containerView.setBackgroundResource(NimUIKitImpl.getOptions().messageRightBackground);
containerView.setPadding(ScreenUtil.dip2px(10), ScreenUtil.dip2px(8), ScreenUtil.dip2px(15), ScreenUtil.dip2px(8));
animationView.setBackgroundResource(R.drawable.nim_audio_animation_list_right);
durationLabel.setTextColor(Color.WHITE);
durationLabel.setTextColor(Color.parseColor("#666666"));
}
}

View File

@@ -52,10 +52,10 @@ public class MsgViewHolderText extends MsgViewHolderBase {
private void layoutDirection() {
if (isReceivedMessage()) {
bodyTextView.setBackgroundResource(NimUIKitImpl.getOptions().messageLeftBackground);
bodyTextView.setTextColor(Color.BLACK);
bodyTextView.setTextColor(Color.parseColor("#5F45D6"));
} else {
bodyTextView.setBackgroundResource(NimUIKitImpl.getOptions().messageRightBackground);
bodyTextView.setTextColor(Color.WHITE);
bodyTextView.setTextColor(Color.parseColor("#666666"));
}
// bodyTextView.setPadding(ScreenUtil.dip2px(10), ScreenUtil.dip2px(14), ScreenUtil.dip2px(10), ScreenUtil.dip2px(14));
}