Android学习
文章平均质量分 88
panxianhaoo
这个作者很懒,什么都没留下…
展开
-
Android自定义View(1)
首先我们首先要了解什么是View。 官方文档是这么写的: This class represents the basic building block for user interface components. A View occupies a rectangular area on the screen and is responsible for drawing and event h原创 2017-11-21 19:25:43 · 239 阅读 · 0 评论 -
Android的自定义View(2)
介绍了一些基础的知识,下面我们开始自定义View。 自定义View的步骤:自定义View的属性创建类文件,添加构造方法,获取属性并初始化变量重写onMesure方法重写onDraw方法一.自定义View的属性 自定义View的属性,首先在res/values/ 下建立一个attrs.xml , 在里面定义我们的属性和声明我们的整个样式。 不过现在的Android Studio在创建原创 2017-11-26 21:44:17 · 178 阅读 · 0 评论