How to remove focus without setting focus to another control?

后端 未结 11 1789
终归单人心
终归单人心 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:08

    
    
    LinearLayout llRootView = findViewBindId(R.id.ll_root_view);
    llRootView.clearFocus();
    

    I use this when already finished update profile info and remove all focus from EditText in my layout

    ====> Update: In parent layout content my EditText add line:

    android:focusableInTouchMode="true"
    

提交回复
热议问题