新增item_chat_msg.xml控制聊天消息项布局 #35

Merged
pjao9fvxr merged 1 commits from zhouzexin_branch into master 4 weeks ago

@ -0,0 +1,47 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="8dp">
<!-- 1. 消息容器 -->
<RelativeLayout
android:id="@+id/rl_msg_container"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<!-- 左侧气泡容器 (AI & Reminder) -->
<LinearLayout
android:id="@+id/ll_left_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginRight="60dp">
<TextView
android:id="@+id/tv_msg_left"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/bg_bubble_ai"
android:padding="12dp"
android:textColor="#000000"
android:textSize="16sp" />
</LinearLayout>
<!-- 右侧气泡容器 (User) -->
<LinearLayout
android:id="@+id/ll_right_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginLeft="60dp">
<TextView
android:id="@+id/tv_msg_right"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/bg_bubble_user"
android:padding="12dp"
android:textColor="#000000"
android:textSize="16sp" />
</LinearLayout>
</RelativeLayout>
</LinearLayout>
Loading…
Cancel
Save