结对作业冲刺7

实现自己的聊天框

复制代码
 1 <?xml version="1.0" encoding="utf-8"?>
 2 <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
 3     android:layout_width="match_parent"
 4     android:layout_height="wrap_content"
 5     xmlns:app="http://schemas.android.com/apk/res-auto"
 6     android:layout_marginTop="@dimen/_8sdp"
 7     android:padding="@dimen/_4sdp">
 8 
 9     <TextView
10         android:id="@+id/textMessage"
11         android:layout_width="0dp"
12         android:layout_height="wrap_content"
13         android:background="@drawable/background_sent_meaasge"
14         android:paddingStart="@dimen/_12sdp"
15         android:paddingTop="@dimen/_8sdp"
16         android:paddingEnd="@dimen/_12sdp"
17         android:paddingBottom="@dimen/_8sdp"
18         android:textColor="@color/white"
19         app:layout_constraintWidth_max="wrap"
20         android:textSize="@dimen/_13ssp"
21         app:layout_constraintEnd_toEndOf="parent"
22         app:layout_constraintTop_toTopOf="parent"
23         app:layout_constraintWidth_percent="0.8"/>
24 
25     <TextView
26         android:id="@+id/textDateTime"
27         android:layout_width="0dp"
28         android:layout_height="wrap_content"
29         android:layout_marginTop="@dimen/_4sdp"
30         android:textColor="@color/secondary_text"
31         android:textSize="@dimen/_8ssp"
32         app:layout_constraintEnd_toEndOf="parent"
33         app:layout_constraintTop_toBottomOf="@id/textMessage" />
34 
35 </androidx.constraintlayout.widget.ConstraintLayout>
复制代码

 

posted @   新晋软工小白  阅读(4)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
点击右上角即可分享
微信分享提示