Android: how to disable controls during progress bar is active

后端 未结 4 2331
逝去的感伤
逝去的感伤 2021-02-19 08:47

I show my infinte progress bar in the action bar \"as usual\":

requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
...
setProgressBarIndeterminateVisibi         


        
4条回答
  •  名媛妹妹
    2021-02-19 09:41

    in case, if somebody else faced the same problem,

    to disable editing the text use: EditText.setFocusable(false);

    to enable editing: EditText.setFocusableInTouchMode(true);

提交回复
热议问题