private void setShimmerAnimating(boolean shimmerAnimating)
{
mShimmerAnimating = shimmerAnimating;
if (mShimmerAnimating)
{
mShimmerLinearGradient = new LinearGradient(0, 0, mFrameRectF.width(), mFrameRectF.height(),
new int[] {0x00FFFFFF, 0x1AFFFFFF, mShimmerColor, 0x1AFFFFFF, 0x00FFFFFF},
new float[] {0f, 0.2f, 0.5f, 0.8f, 1f}, Shader.TileMode.CLAMP);
mShimmerPaint.setShader(mShimmerLinearGradient);
}
}
AbsFocusBorder.java 文件源码
java
阅读 46
收藏 0
点赞 0
评论 0
项目:ShimmerDemo
作者:
评论列表
文章目录