im调整
This commit is contained in:
9
app/src/main/res/drawable/nim_message_item_left.xml
Normal file
9
app/src/main/res/drawable/nim_message_item_left.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
|
||||
<solid android:color="@color/white"/>
|
||||
|
||||
<corners android:topRightRadius="12dp" android:bottomLeftRadius="12dp" android:bottomRightRadius="12dp"/>
|
||||
|
||||
</shape>
|
||||
12
app/src/main/res/drawable/nim_message_item_right.xml
Normal file
12
app/src/main/res/drawable/nim_message_item_right.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
|
||||
<!-- <solid android:color="#2aafed"/>-->
|
||||
<gradient android:angle="270"
|
||||
android:startColor="#249CF8"
|
||||
android:endColor="#30E5F6"/>
|
||||
|
||||
<corners android:topLeftRadius="12dp" android:bottomLeftRadius="12dp" android:bottomRightRadius="12dp"/>
|
||||
|
||||
</shape>
|
||||
@@ -12,6 +12,7 @@
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<LinearLayout
|
||||
android:visibility="gone"
|
||||
android:id="@+id/lin_msg_vip"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -41,6 +42,7 @@
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:visibility="gone"
|
||||
android:id="@+id/lin_msg_sign"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@@ -21,12 +21,14 @@
|
||||
android:layout_weight="1">
|
||||
|
||||
<ImageView
|
||||
android:visibility="gone"
|
||||
android:id="@+id/iv_msg_bg"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:scaleType="fitXY" />
|
||||
|
||||
<com.xuebiping.bolizhuzi.utils.MaskImageView
|
||||
android:visibility="gone"
|
||||
android:id="@+id/iv_background"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
@@ -43,9 +45,11 @@
|
||||
android:orientation="vertical">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:background="@color/white"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="44dp">
|
||||
android:paddingTop="44dp"
|
||||
android:paddingBottom="8dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_back"
|
||||
@@ -54,25 +58,39 @@
|
||||
android:paddingStart="16dp"
|
||||
android:paddingTop="10dp"
|
||||
android:paddingBottom="10dp"
|
||||
android:src="@drawable/ic_return_white"
|
||||
android:src="@mipmap/ic_black_back"
|
||||
fresco:layout_constraintBottom_toBottomOf="parent"
|
||||
fresco:layout_constraintStart_toStartOf="parent"
|
||||
fresco:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<!-- <TextView-->
|
||||
<!-- android:id="@+id/tv_user_name"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:textColor="@color/black"-->
|
||||
<!-- android:textSize="17dp"-->
|
||||
<!-- android:textStyle="bold"-->
|
||||
<!-- fresco:layout_constraintBottom_toBottomOf="parent"-->
|
||||
<!-- fresco:layout_constraintEnd_toStartOf="@+id/iv_user_info"-->
|
||||
<!-- fresco:layout_constraintStart_toEndOf="@+id/iv_back"-->
|
||||
<!-- fresco:layout_constraintTop_toTopOf="parent"-->
|
||||
<!-- tools:text="123131" />-->
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_user_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/white"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="17dp"
|
||||
android:textStyle="bold"
|
||||
fresco:layout_constraintBottom_toBottomOf="parent"
|
||||
fresco:layout_constraintEnd_toStartOf="@+id/iv_user_info"
|
||||
fresco:layout_constraintStart_toEndOf="@+id/iv_back"
|
||||
fresco:layout_constraintStart_toStartOf="parent"
|
||||
fresco:layout_constraintEnd_toEndOf="parent"
|
||||
fresco:layout_constraintTop_toTopOf="parent"
|
||||
tools:text="123131" />
|
||||
|
||||
<ImageView
|
||||
android:visibility="gone"
|
||||
android:id="@+id/iv_interactive"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -96,6 +114,36 @@
|
||||
fresco:layout_constraintTop_toTopOf="parent" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/rl_title_coin_tip"
|
||||
android:background="@color/white"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="32dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_title_coin_tip"
|
||||
android:drawablePadding="4dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawableStart="@mipmap/ic_message_risk_tip"
|
||||
android:text="私信2金币/条"/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_text_warm"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="32dp"
|
||||
android:alpha="0"
|
||||
android:background="#fee6e0"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingLeft="@dimen/dp16"
|
||||
android:textColor="#f94f2e"
|
||||
android:textSize="12sp"
|
||||
android:visibility="gone" />
|
||||
|
||||
<com.flyco.roundview.RoundLinearLayout
|
||||
android:id="@+id/wxContainer"
|
||||
android:layout_width="match_parent"
|
||||
@@ -209,6 +257,7 @@
|
||||
android:layout_weight="1" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:visibility="gone"
|
||||
android:id="@+id/rv_call_list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="30dp"
|
||||
@@ -218,17 +267,7 @@
|
||||
android:layout_marginBottom="3dp"
|
||||
android:background="@color/transparent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_text_warm"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:alpha="0"
|
||||
android:background="#fee6e0"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingLeft="@dimen/dp16"
|
||||
android:textColor="#f94f2e"
|
||||
android:textSize="12sp"
|
||||
android:visibility="gone" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<FrameLayout
|
||||
@@ -267,6 +306,7 @@
|
||||
</FrameLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:visibility="gone"
|
||||
android:id="@+id/rl_guard"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
@@ -299,4 +339,5 @@
|
||||
|
||||
<include layout="@layout/nim_message_activity_bottom_layout" />
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
BIN
app/src/main/res/mipmap-xhdpi/ic_message_risk_tip.png
Normal file
BIN
app/src/main/res/mipmap-xhdpi/ic_message_risk_tip.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 677 B |
Binary file not shown.
|
Before Width: | Height: | Size: 3.2 KiB |
Reference in New Issue
Block a user