1

如何显示 ProgressBarIndeterminate (或使用这些)

requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setSupportProgressBarIndeterminateVisibility(true);

Fragment/SherlockFragment(不是 SherlockFragmentActivity)中?

4

2 回答 2

3
getActivity.setSupportProgressBarIndeterminateVisibility(true);

getActivity().requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
于 2013-03-26T10:54:17.793 回答
0

您不能调用requestWindowFeature. Fragment要将内容设置为 aFragment您需要覆盖onCreateView()并返回ViewFragment应该显示的内容。

可能您应该阅读更多内容Fragments

于 2013-03-26T10:23:21.697 回答