我的tab 私聊页面 UI修改
Before Width: | Height: | Size: 261 B |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.9 KiB |
BIN
nim_uikit/res/drawable-xhdpi/arrow_left_white.png
Normal file
After Width: | Height: | Size: 407 B |
BIN
nim_uikit/res/drawable-xhdpi/nim_message_input_emotion.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 2.9 KiB |
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#fff4f4f4" />
|
||||
<solid android:color="#35354B" />
|
||||
<corners android:radius="15dp" />
|
||||
</shape>
|
@@ -13,6 +13,6 @@
|
||||
android:topLeftRadius="4dp"
|
||||
android:topRightRadius="20dp"/>
|
||||
|
||||
<solid android:color="#EFEBFF"/>
|
||||
<solid android:color="#2A2A39"/>
|
||||
|
||||
</shape>
|
@@ -13,6 +13,6 @@
|
||||
android:bottomRightRadius="20dp"
|
||||
android:bottomLeftRadius="20dp"/>
|
||||
|
||||
<solid android:color="#F4F4F4"/>
|
||||
<solid android:color="#2A2A39"/>
|
||||
|
||||
</shape>
|
8
nim_uikit/res/drawable/nim_bg_message_tip.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#35354B" />
|
||||
<corners android:topLeftRadius="15dp"
|
||||
android:topRightRadius="15dp"
|
||||
android:bottomRightRadius="15dp"
|
||||
android:bottomLeftRadius="15dp"/>
|
||||
</shape>
|
@@ -4,6 +4,7 @@
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/color_2a2a39"
|
||||
android:orientation="vertical">
|
||||
|
||||
<include layout="@layout/nim_message_activity_text_layout"/>
|
||||
|
@@ -4,7 +4,6 @@
|
||||
android:id="@+id/textMessageLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/nim_message_view_bottom"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingBottom="@dimen/bottom_component_margin_vertical"
|
||||
android:paddingTop="@dimen/bottom_component_margin_vertical">
|
||||
|
@@ -3,7 +3,6 @@
|
||||
android:id="@+id/messageActivityLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/color_message_default_bg"
|
||||
android:orientation="vertical">
|
||||
|
||||
<FrameLayout
|
||||
@@ -83,24 +82,6 @@
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<!--<RelativeLayout-->
|
||||
<!--android:minHeight="35dp"-->
|
||||
<!--android:layout_width="match_parent"-->
|
||||
<!--android:layout_height="wrap_content">-->
|
||||
<!--<include layout="@layout/nim_message_activity_bottom_layout"-->
|
||||
<!--android:layout_width="match_parent"-->
|
||||
<!--android:layout_height="wrap_content"/>-->
|
||||
<!--<TextView-->
|
||||
<!--android:text="禁言中,快找管理员解除禁言吧!"-->
|
||||
<!--android:textColor="@color/white"-->
|
||||
<!--android:background="@color/gray7"-->
|
||||
<!--android:textSize="15dp"-->
|
||||
<!--android:gravity="center"-->
|
||||
<!--android:layout_alignParentBottom="true"-->
|
||||
<!--android:layout_alignParentTop="true"-->
|
||||
<!--android:layout_width="match_parent"-->
|
||||
<!--android:layout_height="wrap_content" />-->
|
||||
<!--</RelativeLayout>-->
|
||||
|
||||
<include layout="@layout/nim_message_activity_bottom_layout" />
|
||||
|
||||
|
@@ -19,8 +19,7 @@
|
||||
android:paddingLeft="7dip"
|
||||
android:paddingRight="7dip"
|
||||
android:textColor="#ffffff"
|
||||
android:textSize="12sp"
|
||||
android:textStyle="bold"
|
||||
android:textSize="10sp"
|
||||
android:visibility="gone" />
|
||||
|
||||
<com.netease.nim.uikit.common.ui.imageview.HeadImageView
|
||||
|
@@ -1,9 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical">
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/nim_message_item_text_body"
|
||||
android:layout_width="wrap_content"
|
||||
@@ -15,6 +16,6 @@
|
||||
android:maxWidth="238dp"
|
||||
android:minWidth="40dp"
|
||||
android:minHeight="40dp"
|
||||
android:textColor="@color/color_black_b3000000"
|
||||
android:textSize="16sp"/>
|
||||
android:textColor="@color/white"
|
||||
android:textSize="13sp" />
|
||||
</LinearLayout>
|
@@ -2,5 +2,6 @@
|
||||
<resources>
|
||||
<color name="left_ball_color">#7f01020a</color>
|
||||
<color name="right_ball_color">#7f01020b</color>
|
||||
<color name="item_hover">#2A2A39</color>
|
||||
<color name="item_hover">#dbdbdb</color>
|
||||
<color name="item_hover_nim">#2A2A39</color>
|
||||
</resources>
|
@@ -10,7 +10,7 @@ public class NimToolBarOptions extends ToolBarOptions {
|
||||
|
||||
public NimToolBarOptions() {
|
||||
//logoId = R.drawable.nim_actionbar_nest_dark_logo;
|
||||
navigateId = R.drawable.nim_actionbar_dark_back_icon;
|
||||
navigateId = R.drawable.arrow_left_white;
|
||||
titleString = "";
|
||||
isNeedNavigate = true;
|
||||
}
|
||||
|
@@ -36,40 +36,13 @@ public class MsgViewHolderText extends MsgViewHolderBase {
|
||||
|
||||
@Override
|
||||
protected void bindContentView() {
|
||||
layoutDirection();
|
||||
bodyTextView.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
onItemClick();
|
||||
}
|
||||
});
|
||||
bodyTextView.setOnClickListener(v -> onItemClick());
|
||||
MoonUtil.identifyFaceExpression(NimUIKit.getContext(), bodyTextView, getDisplayText(), ImageSpan.ALIGN_BOTTOM);
|
||||
bodyTextView.setMovementMethod(LinkMovementMethod.getInstance());
|
||||
bodyTextView.setOnLongClickListener(longClickListener);
|
||||
bodyTextView.setLinkTextColor(Color.parseColor("#522f0c"));
|
||||
}
|
||||
|
||||
private void layoutDirection() {
|
||||
if (isReceivedMessage()) {
|
||||
bodyTextView.setBackgroundResource(NimUIKitImpl.getOptions().messageLeftBackground);
|
||||
bodyTextView.setTextColor(Color.parseColor("#5F45D6"));
|
||||
} else {
|
||||
bodyTextView.setBackgroundResource(NimUIKitImpl.getOptions().messageRightBackground);
|
||||
bodyTextView.setTextColor(Color.parseColor("#666666"));
|
||||
}
|
||||
// bodyTextView.setPadding(ScreenUtil.dip2px(10), ScreenUtil.dip2px(14), ScreenUtil.dip2px(10), ScreenUtil.dip2px(14));
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int leftBackground() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int rightBackground() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
protected String getDisplayText() {
|
||||
return message.getContent();
|
||||
}
|
||||
|