![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
自定义View
小二李
这个作者很懒,什么都没留下…
展开
-
PathMeasure 实现加载动画
PathMeasure 实现加载动画原创 2022-02-15 21:32:52 · 371 阅读 · 0 评论 -
Android 实现水波纹效果
Android 实现水波纹动画原创 2022-02-15 21:06:32 · 2346 阅读 · 1 评论 -
Android PathMeasure 高级使用
Android PathMeasure 高级使用原创 2022-02-11 08:19:34 · 277 阅读 · 0 评论 -
自定义文本进度条
自定义文本进度条原创 2022-01-27 08:20:04 · 1594 阅读 · 0 评论 -
定义进度条样式
布局 要想在布局文件中声明圆形进度条,可以添加 style 属性值为 style="?android:progressBarStyle" <?xml version="1.0" encoding="utf-8"?> <androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match原创 2022-01-27 08:12:32 · 300 阅读 · 0 评论 -
属性动画实现水波纹效果
public class SplashView extends View { // 旋转圆的画笔 private Paint mPaint; // 扩散圆的画笔 private Paint mHolePaint; // 属性动画 private ValueAnimator mValueAnimator; // 背景色 private int mBackgroundColor = Color.WHITE; // 每个小球颜...原创 2022-01-25 10:46:46 · 184 阅读 · 0 评论 -
粒子爆炸效果
public class SplitView extends View { public SplitView(Context context) { this(context, null); } public SplitView(Context context, @Nullable AttributeSet attrs) { this(context, attrs, 0); } public SplitView(Context c.原创 2022-01-25 10:05:23 · 125 阅读 · 0 评论 -
自定义ViewGroup,实现水平 HorizontalView
package com.imooc.dialogdemo.view; import android.content.Context; import android.util.AttributeSet; import android.view.MotionEvent; import android.view.VelocityTracker; import android.view.View; import android.view.ViewGroup; import android.widget.Sc...原创 2021-12-28 20:27:21 · 394 阅读 · 0 评论