二,项目实验——Android 约束布局

Android约束布局实验:实现注册个人信息界面,
本文介绍了如何使用Android约束布局完成一个“注册个人信息”界面的项目实验,包括布局结构、组件设置和功能实现,如EditText、TextView和RadioGroup的约束配置。
目录 链接
一,项目实验——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=
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值