![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
自定义View
文章平均质量分 70
AH..
这个作者很懒,什么都没留下…
展开
-
自定义TextView,获取随机数和随机颜色
XML中的代码中 <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.c...原创 2018-11-29 23:33:15 · 573 阅读 · 1 评论 -
自定义View 流式布局(历史搜索,热门搜索)
xml布局 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="原创 2018-12-02 20:50:23 · 1584 阅读 · 0 评论 -
自定义View画圆
自定义属性建attrs.xml <?xml version="1.0" encoding="utf-8"?> <resources> <declare-styleable name="ballview"> <attr name="ball_size" format="integer"&原创 2018-12-02 20:56:18 · 373 阅读 · 0 评论 -
自定义View设置转盘
XML中的代码 &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.原创 2018-11-28 20:32:06 · 139 阅读 · 0 评论 -
自定义View/ViewGroup实现兴趣树效果,奇数条在左,偶数条在右
xml布局 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="原创 2018-12-21 08:53:03 · 118 阅读 · 0 评论