我想打电话给:

requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);


但是下面的代码不起作用:

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
        Bundle savedInstanceState) {
    requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
    View rootView = inflater.inflate(R.layout.fragment_login, container, false);

     return rootView;
    }//end onCreateView


有人可以帮忙吗,请。谢谢

最佳答案

Fragment中尝试

getActivity().requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);

07-27 16:34