胡饱饱的Blog
动态日历
统计近10个月的博主文章和评论数目
Loading...
分类雷达图
Loading...
发布统计图
Loading...
分类统计图
Loading...
标签统计图
Loading...
时光机
新
时光机
小雪王
March 14th, 2024 at 03:51 pm
学校的麻辣香锅 kuku好吃
March 13th, 2024 at 10:52 pm
去 买了罗森这个小汉堡 好难吃🤯 ,而且他一个这么 mini卖 7.5 呜呜 狠狠避雷了!
March 13th, 2024 at 12:19 pm
用户名
密码
登录
登录中...
文章
时光机
Android
博主:
xiaohu
发布时间:
2025 年 03 月 03 日
310 次浏览
暂无评论
347字数
分类:
首页
正文
分享到:
```xml
``` ```xml
```
最后修改:2025 年 03 月 13 日
© 允许规范转载
打赏
赞赏作者
支付宝
微信
赞
如果觉得我的文章对你有用,请随意赞赏
下一篇
上一篇
发表评论
取消回复
使用cookie技术保留您的个人信息以便您下次快速评论,继续评论表示您已同意该条款
评论
*
私密评论
名称
*
🎲
邮箱
*
地址
发表评论
提交中...
Android
xiaohu
•
2025 年 03 月 03 日
<div id="md_content_3" class="md_content" style="min-height: 50px;"><textarea id="append-test" style="display:none;">```xml <androidx.constraintlayout.widget.ConstraintLayout 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=".MainActivity"> <!-- 账号 --> <TextView android:id="@+id/accountLabel" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="账号:" app:layout_constraintTop_toTopOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toStartOf="@+id/accountInput" app:layout_constraintHorizontal_chainStyle="packed" /> <EditText android:id="@+id/accountInput" android:layout_width="0dp" android:layout_height="wrap_content" android:hint="QQ/Phone" app:layout_constraintTop_toTopOf="@id/accountLabel" app:layout_constraintStart_toEndOf="@id/accountLabel" app:layout_constraintEnd_toEndOf="parent" android:layout_marginStart="8dp"/> <!-- 密码 --> <TextView android:id="@+id/passwordLabel" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="密码:" app:layout_constraintTop_toBottomOf="@id/accountLabel" app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toStartOf="@+id/passwordInput" android:layout_marginTop="16dp"/> <EditText android:id="@+id/passwordInput" android:layout_width="0dp" android:layout_height="wrap_content" android:inputType="textPassword" android:hint="Password" app:layout_constraintTop_toTopOf="@id/passwordLabel" app:layout_constraintStart_toEndOf="@id/passwordLabel" app:layout_constraintEnd_toEndOf="parent" android:layout_marginStart="8dp"/> <!-- 班级 --> <TextView android:id="@+id/classLabel" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="班级:" app:layout_constraintTop_toBottomOf="@id/passwordLabel" app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toStartOf="@+id/classSpinner" android:layout_marginTop="16dp"/> <Spinner android:id="@+id/xclass" android:layout_width="0dp" android:layout_height="wrap_content" app:layout_constraintTop_toTopOf="@id/classLabel" app:layout_constraintStart_toEndOf="@id/classLabel" app:layout_constraintEnd_toEndOf="parent" android:layout_marginStart="8dp"/> <!-- 登录按钮 --> <Button android:id="@+id/loginButton" android:layout_width="0dp" android:layout_height="wrap_content" android:text="登录" app:layout_constraintTop_toBottomOf="@id/classLabel" app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent" android:layout_marginTop="16dp"/> </androidx.constraintlayout.widget.ConstraintLayout> ``` ```xml <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" tools:context=".MainActivity" > <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:orientation="vertical"> <!-- Line 1 --> <LinearLayout android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_gravity="center" android:orientation="horizontal"> <TextView android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="账号:"/> <EditText android:layout_width="200sp" android:layout_height="wrap_content" android:hint="QQ/Phone"/> </LinearLayout> <!-- Line2 --> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:orientation="horizontal"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="密码:"/> <EditText android:layout_width="200sp" android:layout_height="wrap_content" /> </LinearLayout> <!-- Line3 --> <LinearLayout android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_gravity="center" android:orientation="horizontal"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="班级:"/> <Spinner android:id="@+id/xclass" android:layout_width="200sp" android:layout_height="wrap_content"/> </LinearLayout> <!-- Line4 --> <LinearLayout android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_gravity="center" android:orientation="horizontal"> <Button android:layout_width="200sp" android:layout_height="wrap_content" android:text="登录"/> </LinearLayout> </LinearLayout> </RelativeLayout> ```</textarea></div>
文章目录