![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
android-layout
android-layout
awodefengduanwu
这个作者很懒,什么都没留下…
展开
-
Android如何设置圆角按钮
在res目录下的drawable目录下新建shape.xml文件<?xml version="1.0" encoding="utf-8"?><!-- 填充的颜色 --><solid android:color="#FF065E8D" /><!-- 设置按钮的四个角为弧形 --><!-- android:radius 弧形的半径...原创 2020-01-09 10:47:28 · 561 阅读 · 0 评论 -
layout_marginTop,layout_marginBottom
layout_marginTop,layout_marginBottom,layout_marginRight,layout_marginLeft 是 RelativeLayout 中的四种属性,今天在进行UI设计的时候,着实困扰了好久,索性做个总结。先上结论:layout_marginTop 指定该属性所在控件距上部最近控件的最小值;layout_marginBottom 指定该属性所在控...原创 2020-01-09 10:08:42 · 842 阅读 · 0 评论 -
Android layout属性大全
第一类:属性值 true或者 falseandroid:layout_centerHrizontal 水平居中android:layout_centerVertical 垂直居中 android:layout_centerInparent 相对于父元素完全居中 android:layout_alignParentBottom 贴紧父元素的下边缘 androi...原创 2020-01-09 09:34:55 · 65 阅读 · 0 评论