阶段二冲刺七
昨天写完了简单的登录注册功能
解决的数据库的问题后,登录注册便没有遇到很大的问题
今天实现论坛功能
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:padding="15dp" tools:context=".ui.fragment.TalkFragment"> <!-- TODO: Update blank fragment layout --> <RelativeLayout android:layout_width="match_parent" android:layout_height="350dp"> <ImageView android:id="@+id/image" android:layout_width="45dp" android:layout_height="45dp" android:layout_gravity="center" android:background="@drawable/talk_biankuang" android:src="@mipmap/ic_launcher" /> <TextView android:id="@+id/text_1" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginLeft="5dp" android:layout_toRightOf="@id/image" android:text="学生棋" android:textSize="15dp" /> <TextView android:id="@+id/text_2" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@id/image" android:layout_gravity="center" android:layout_marginTop="7dp" android:text="如何快速战胜电脑?" android:textSize="18dp" /> <LinearLayout android:layout_width="match_parent" android:layout_height="180dp" android:layout_below="@+id/text_2" android:gravity="center" android:orientation="vertical"> <ImageView android:layout_width="300dp" android:layout_height="170dp" android:layout_margin="10dp" android:src="@drawable/xueshengqi" /> </LinearLayout> </RelativeLayout> <Button android:layout_width="50dp" android:layout_height="50dp" android:text="发表" android:layout_alignParentRight="true" android:layout_alignParentBottom="true" android:background="@drawable/denglu_2" /> </RelativeLayout>
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Ollama——大语言模型本地部署的极速利器
· 使用C#创建一个MCP客户端
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· Windows编程----内核对象竟然如此简单?
· ollama系列1:轻松3步本地部署deepseek,普通电脑可用