自定义View学习
文章平均质量分 81
七叶林
专业种田,卖菜,偶尔追追动漫,写写代码
展开
-
对 AbsoluteLayout 的一点理解
菜鸟记录一下,把之前的笔记抄到这里/** * A layout that lets you specify exact locations (x/y coordinates) of its * children. Absolute layouts are less flexible and harder to maintain than * other types of layouts wit原创 2016-11-27 15:10:19 · 3648 阅读 · 0 评论 -
3秒鲁一个简单的百分比布局
今天第二篇搬到这里的笔记,之前尝试做过一个十分简单的百分比布局: 1、第 1 秒,在 attrs 中定义我们要的属性:<resources> <declare-styleable name="percentRelativeLayout"> <attr name="layout_widthPercent" format="float"></attr> <att原创 2016-11-27 18:08:50 · 731 阅读 · 0 评论 -
recyclerview 简单布局小试牛刀
这是 https://blog.csdn.net/handsonn/article/details/52850815 的第二篇简单的recyclerview 运用,实现的效果如下,类似一个简易的课表:activity_main.xml 布局如下:<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns...原创 2018-07-01 23:33:11 · 763 阅读 · 0 评论