摘要: Android 中的ViewGroup是通过一个Array来保存其Children,当调用某个childView的bringToFront时,是将该childView放在其Parent的Array数组的最后,ViewGroup的dispatchDraw在draw时是按照Array从前往后依次调用dr 阅读全文
posted @ 2021-01-25 10:12 似水流云 阅读(766) 评论(0) 推荐(0) 编辑
摘要: 最近在使用 drawRoundRect(float left, float top, float right, float bottom, float rx, float ry, Paint paint) 画圆角矩形时,四个圆角的线总是比四条边的线更粗,看起来相当难看。 如下图: 画图的代码片段如下 阅读全文
posted @ 2021-01-25 10:09 似水流云 阅读(894) 评论(0) 推荐(0) 编辑