PlaybackDrawableTint.java 文件源码

java
阅读 21 收藏 0 点赞 0 评论 0

项目:Orpheus 作者:
static void doRepeatDrawable(ImageButton v, boolean is24, int color) {
    int one = is24 ? R.drawable.ic_repeat_one_white_24dp : R.drawable.ic_repeat_one_white_36dp;
    int all = is24 ? R.drawable.ic_repeat_white_24dp : R.drawable.ic_repeat_white_36dp;
    LevelListDrawable d = (LevelListDrawable) v.getDrawable();
    d.addLevel(1, 1, tintDrawable(v.getContext(), one, color));
    d.addLevel(2, 2, tintDrawable(v.getContext(), all, color));
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号