![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
自定义控件
舞蓝蔚落
这个作者很懒,什么都没留下…
展开
-
canav绘制多边形,xml绘制多边形
Bitmap bitmap = Bitmap.createBitmap(ToolUtils.dip2px(423), ToolUtils.dip2px(168), Bitmap.Config.ARGB_8888); Canvas canvas = new Canvas(bitmap); Path path = new Path(); //多边形的起点 path.moveTo(ToolUtils.dip2px(35) + percent * (width -ToolUtils.dip2px(45)), 0).原创 2022-03-02 13:54:04 · 1461 阅读 · 0 评论 -
自定义属性,style文件的配置
1.例如自定义属性的配置如下 declare-styleable name="TextIvoretView"> _left_visible" format="string"/> _left_name" format="string"/> _left_color" format="color"/> _left_size" format=原创 2017-08-24 10:08:31 · 500 阅读 · 0 评论