How do I hide the soft keyboard when changing tabs?

后端 未结 5 1428
耶瑟儿~
耶瑟儿~ 2021-01-05 13:06

EDIT : Seems I\'m not making myself clear. What I need is a way to hide the soft keyboard whenever i replace the fragment I am in. How do I go about doing this ?

5条回答
  •  青春惊慌失措
    2021-01-05 14:04

    In your XML file just remove android:focusable="true" from everywhere.

    One more thing is if you are using then also remove this line.

    Try it I think it should work.

提交回复
热议问题