消息气泡位置,关注消息默认消息,样式更改
This commit is contained in:
5
live/src/main/res/drawable/chat_message_bg.xml
Normal file
5
live/src/main/res/drawable/chat_message_bg.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<corners android:radius="8dp" />
|
||||
<solid android:color="#30000000" />
|
||||
</shape>
|
||||
@@ -3,22 +3,20 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/bg"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/text_txt"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="left"
|
||||
android:layout_marginLeft="9dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginRight="9dp"
|
||||
android:layout_marginBottom="6dp"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="14sp"
|
||||
android:textStyle="bold"
|
||||
android:paddingBottom="7dp"
|
||||
android:textColor="#fff"
|
||||
android:textSize="12sp"
|
||||
android:visibility="visible"
|
||||
tools:ignore="RtlHardcoded" />
|
||||
|
||||
@@ -182,4 +180,40 @@
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="45dp" />
|
||||
</LinearLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/attention_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/chat_message_bg"
|
||||
android:visibility="gone">
|
||||
|
||||
<com.yunbao.common.views.weight.ClipPathCircleImage
|
||||
android:id="@+id/clip_image2"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_margin="9dp"
|
||||
android:scaleType="centerCrop" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="48dp"
|
||||
android:layout_marginEnd="73dp"
|
||||
android:text="@string/automatic_chat"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_attention"
|
||||
android:layout_width="54dp"
|
||||
android:layout_height="26dp"
|
||||
android:layout_gravity="end"
|
||||
android:layout_margin="11dp"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:src="@mipmap/btn_attention" />
|
||||
|
||||
</FrameLayout>
|
||||
</LinearLayout>
|
||||
BIN
live/src/main/res/mipmap-xxxhdpi/btn_attention.png
Normal file
BIN
live/src/main/res/mipmap-xxxhdpi/btn_attention.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 28 KiB |
Reference in New Issue
Block a user