MaterialProgressDialog.java 文件源码

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

项目:easyfilemanager 作者:
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    Resources res = getContext().getResources();
    mDefaultColor = res.getColor(R.color.accentColor);

    indeterminateDrawable = new MaterialProgressDrawable(getContext(), findViewById(android.R.id.progress));
    indeterminateDrawable.setBackgroundColor(CIRCLE_BG_LIGHT);
    indeterminateDrawable.setAlpha(255);
    indeterminateDrawable.updateSizes(MaterialProgressDrawable.XLARGE);
    indeterminateDrawable.setColorSchemeColors(getColor());
    indeterminateDrawable.start();
    setIndeterminateDrawable(indeterminateDrawable);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号