Okhttp3简单封装get和post请求工具类
简单封装了okhttp3的工具类以便于以后直接拿来使用。
简单封装了okhttp3的工具类以便于以后直接拿来使用。
本篇主要关于属性动画的进一步学习。 包含了TypeEvaluator、PropertyValuesHolder、AnimatorSet的简单用法。
android中的动画分两类:Animation和 Transition。
记住一个原则:android自定义view绘制时,先绘制的内容会被后绘制的覆盖。
本文章主要介绍android中使用canvas、matrix、camera对图像的剪切、变换操作。
剪切矩形范围。
canvas.save();
canvas.clipRect(left, top, right, bottom);
canvas.drawBitmap(bitmap, x, y, paint);
canvas.restore();
注意:记得加Canvas.save() 和 Canvas.restore() 来及时恢复绘制范围
剪切Path范围。
canvas.save();
canvas.clipPath(path1);
canvas.drawBitmap(bitmap, point1.x, point1.y, paint);
canvas.restore();