当前位置: 动力学知识库 > 问答 > 编程问答 >

android - What l kind of progress dialog is this and how do I set it up

问题描述:

I have seen this progress bar in apps but I don't know what it's called.

How do I set it up and change it intermediate colors.

网友答案:

Maybe the Swipe-to-Refresh is the one you're referring to.

More info at http://developer.android.com/training/swipe/add-swipe-interface.html

网友答案:

If you only want to change the color of the spinner and not the background, you can try -

            progressBar.getIndeterminateDrawable().setColorFilter(
            getResources().getColor(R.color.blue),
            android.graphics.PorterDuff.Mode.SRC_IN);

Otherwise, to change the background as well, you need to customize your progressbar for this. The tutorial here may help you.

分享给朋友:
您可能感兴趣的文章:
随机阅读: