private Drawable getPressedEffectBeforeLollipop(CORNER_POSITION cornerPosition, int color) {
ShapeDrawable colorDrawablePressed = getCornerStateDrawable(cornerPosition);
colorDrawablePressed.getPaint().setColor(color);
colorDrawablePressed.getPaint().setStyle(Paint.Style.FILL);
colorDrawablePressed.getPaint().setAlpha(PRESSED_ALPHA_VALUE);
colorDrawablePressed.mutate();
StateListDrawable textBgDrawable = new StateListDrawable();
textBgDrawable.addState(new int[]{android.R.attr.state_enabled, android.R.attr.state_pressed}, colorDrawablePressed);
return textBgDrawable;
}
ResHelper.java 文件源码
java
阅读 48
收藏 0
点赞 0
评论 0
项目:SingleSelectBar
作者:
评论列表
文章目录