引用:http://www.oschina.net/code/snippet_163910_6093
[代码] [Java]代码
1 | requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); |
2 | setContentView(R.layout.main); |
3 | setProgressBarIndeterminateVisibility( true ); |
---------------------------------------------------------
[代码] [Java]代码
1 | protected void onCreate(Bundle savedInstanceState) { |
2 | super .onCreate(savedInstanceState); |
3 | requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); |
4 | setContentView(R.layout.main); |
5 | setProgressBarIndeterminateVisibility( true ); |
6 | setProgressBarIndeterminateVisibility( false ); |