我正在尝试在其中显示不确定的进度条,SherlockFragmentActivity
但我的代码仅显示 ActionBar 而没有ProgreessBar
其中
这是我在 Android 4.1.1 中运行的代码
import com.actionbarsherlock.view.Window;
....
....
public class SowahActivity extends SherlockFragmentActivity{
....
...
...
protected void onCreate(Bundle savedInstanceState) {
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setSupportProgressBarIndeterminateVisibility(true);
super.onCreate(savedInstanceState);
setContentView(R.layout.my_list_view);
}
...
...
}
是什么让进度对话框没有出现在操作栏中