【iapp第四课】通过做登录界面UI认识控件

IAPP   © 文章版权由 admin 解释,禁止匿名转载

#楼主# 2021-7-27

小白零基础学

沙发
XY殒生 2021-7-27
先创建个项目
板凳
XY殒生 2021-7-27
//相对布局属性
width=-1
height=-1
background=white
//背景为白色

地板
XY殒生 2021-7-27
①然后在相对布局里添加线性布局
线性布局的属性
width=-1
height=200dp
orientation=vertical
background=#ff767676
②添加完后再线性布局里加个卡片
卡片的属性
width=-1
height=-1
app_CardcornerRadius=2dp
ut_below=4
layout_margin=14dp
layout_marginTop=40dp
app_CardElevation=2dp

4楼
XY殒生 2021-7-27
然后在卡片添加线性布局
注意:卡片只能添加一个控件,而线性可以添加无数
线性布局的属性
width=-1
height=-1
orientation=vertical

5楼
XY殒生 2021-7-27
属性设置为
width=-1
height=120dp
orientation=vertical
gravity=center

6楼
护身符07 2021-7-27
赶上直播了吗?[滑稽][玫瑰]
7楼
XY殒生 2021-7-27
是的,不过非常慢[滑稽][玫瑰]
8楼
XY殒生 2021-7-27
线性布局6的属性
width=-1
height=50dp
orientation=horizontal
线性布局7,8的属性,两个都一样
width=-1
height=-1
orientation=vertical
layout_weight=1
gravity=center

9楼
XY殒生 2021-7-27
线性布局9的属性
最后是效果图,看看你们做完像不像
width=-1
height=0.4dp
//这里可以设置以小数为单位的
orientation=vertical
BackgroundColor=#ff9e9e9e

10楼
XY殒生 2021-7-27
滑动窗体属性
width=-1
height=-1

评论

登录后才可发表内容
  • 主题

    8

  • 帖子

    522

  • 关注者

    0

Copyright © 2019 凯特网.   Powered by HYBBS 2.3.4  

Runtime:0.1346s Mem:2044Kb