开发者

How to change ProgressBar style in ListFragment under compatibility library?

The progress bar is large one by default in ListFragment

ProgressBar progress = new ProgressBar(context, null, 
            android.R.attr.progressBarStyleLarge);

Is the only way to c开发者_StackOverflowhange it using reflection?


I believe you should be able to subclass it and override the onCreate() with your custom layout. I haven't done it with the ProgressBar, but that's how I customized the ProgressDialog.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜