手机适配
This commit is contained in:
24
app/src/main/res/layout/item_chat_message_me.xml
Normal file
24
app/src/main/res/layout/item_chat_message_me.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- 自己的消息气泡 -->
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="@dimen/sw_12dp"
|
||||
android:paddingEnd="@dimen/sw_12dp"
|
||||
android:paddingTop="@dimen/sw_6dp"
|
||||
android:paddingBottom="@dimen/sw_6dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/messageText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="end"
|
||||
android:maxWidth="@dimen/sw_250dp"
|
||||
android:background="@drawable/bg_chat_bubble_me"
|
||||
android:paddingStart="@dimen/sw_12dp"
|
||||
android:paddingEnd="@dimen/sw_12dp"
|
||||
android:paddingTop="@dimen/sw_8dp"
|
||||
android:paddingBottom="@dimen/sw_8dp"
|
||||
android:textColor="#000000"
|
||||
android:textSize="@dimen/sw_14sp" />
|
||||
</FrameLayout>
|
||||
Reference in New Issue
Block a user