How to remove focus without setting focus to another control?

后端 未结 11 1812
终归单人心
终归单人心 2020-11-28 22:02

I like my UIs to be intuitive; each screen should naturally and unobtrusively guide the user on to the next step in the app. Barring that, I strive to make things as confusi

11条回答
  •  伪装坚强ぢ
    2020-11-28 22:07

    I tried to disable and enable focusability for view and it worked for me (focus was reset):

    focusedView.setFocusable(false);
    focusedView.setFocusableInTouchMode(false);
    focusedView.setFocusable(true);
    focusedView.setFocusableInTouchMode(true);
    

提交回复
热议问题