| 目录 | 链接 |
|---|---|
| 一,项目实验——Android 线性布局 | http://t.csdnimg.cn/yDK2c |
| 二,项目实验——Android 约束布局 | http://t.csdnimg.cn/TS73B |
| 三,个性化定制App登录界面 | http://t.csdnimg.cn/x7q7D |
| 四,项目实验——Activity与Intent | http://t.csdnimg.cn/BlTbs |
一. 简答题(共1题,100分)
-
(简答题)
(1)项目目标:掌握约束布局的使用方法及应用。
(2)项目任务:使用约束布局完成UI界面的设计。
(3)任务内容: -
任务:使用ConstraintLayout完成一个“注册个人信息”的布局。
-
创建项目ConstraintLayoutDemo,包名:cn.edu.baiyunu.constraintlayoutdemo,Language:
Java 。 -
组件树如下图所示:

-
运行效果图:

实验2 运行效果图
实验素材下载↓

<?xml version="1.0" encoding="utf-8"?>
<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"
android:background="@drawable/img2"
tools:context=".MainActivity">
<TextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="30dp"
android:textSize="40dp"
android:text=
Android约束布局实验:实现注册个人信息界面,

本文介绍了如何使用Android约束布局完成一个“注册个人信息”界面的项目实验,包括布局结构、组件设置和功能实现,如EditText、TextView和RadioGroup的约束配置。
最低0.47元/天 解锁文章
2495





