
自定义View
gestwr
这个作者很懒,什么都没留下…
展开
-
自定义view 召唤,光能使者 五角星阵 PathMeasure
分析: 内外圆环 内部五角星 = 两个三角形 - 动效,属性动画ValueAnimator : 0-1 通过getAnimatedValue()获取值并刷新 - 实时截取path 并绘制onDr/内圆 path private Path outerCircle;//外圆 path private Path triangle1;//第一个三角形的 Path private Path triangle2;//第二个三角形的 Path private Path drawPath;//用于截取路径的转载 2023-02-24 13:29:21 · 196 阅读 · 0 评论 -
自定义view 搜索动效
自定义view 搜索动效 // 画笔 private Paint mPaint;// View 宽高 private int mViewWidth;initAll();initPath();// 进入开始动画 mCurrentState = State . STARTING;} // 这个视图拥有的状态转载 2023-02-24 13:05:18 · 134 阅读 · 0 评论 -
自定义view 仿qq步数 半圆弧
*** 仿qq步数 半圆弧//默认圆弧颜色:底色 强调色 colorPrimary = 0x33559bff;// 获取TypedArray TypedArray typedArray = context . obtainStyledAttributes(attrs , R . styleable . QQSteps);// 回收 typedArray . recycle();转载 2023-02-08 20:25:02 · 143 阅读 · 0 评论