腾讯公益赛个人冲刺博客11(2024.5.28)
这一阶段我的任务主要是调用ai接口实现聊天功能,第一天写页面的主要排版
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".Soul" android:orientation="vertical"> <TextView android:layout_width="match_parent" android:layout_height="45dp" android:background="#0cc4e5" android:gravity="center" android:text="小然同学" android:textColor="#795548" android:textSize="20sp" /> <RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent"> <ListView android:id="@+id/list" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_above="@+id/rl_bottom" android:cacheColorHint="@android:color/black" android:divider="@null" android:listSelector="@null" android:transcriptMode="alwaysScroll"/> <RelativeLayout android:id="@+id/rl_bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:background="@drawable/bottom_bg"> <Button android:id="@+id/btn_send" android:layout_width="60dp" android:layout_height="48dp" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:layout_marginRight="10dp" android:background="@drawable/btn_send_selector" android:text="发送" android:textColor="@android:color/black" android:textSize="14sp" /> <EditText android:id="@+id/et_send_msg" android:layout_width="fill_parent" android:layout_height="40dp" android:layout_centerVertical="true" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:layout_toLeftOf="@+id/btn_send" android:background="@drawable/send_msg_bg" android:singleLine="true" android:textColor="@android:color/black" android:textSize="18sp" tools:ignore="SpeakableTextPresentCheck,SpeakableTextPresentCheck,TouchTargetSizeCheck,TouchTargetSizeCheck" /> </RelativeLayout> </RelativeLayout> </LinearLayout>
分类:
软件工程日报(2024年春)
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 一个费力不讨好的项目,让我损失了近一半的绩效!
· 清华大学推出第四讲使用 DeepSeek + DeepResearch 让科研像聊天一样简单!
· 实操Deepseek接入个人知识库
· CSnakes vs Python.NET:高效嵌入与灵活互通的跨语言方案对比
· Plotly.NET 一个为 .NET 打造的强大开源交互式图表库