How to hide the soft keyboard from inside a fragment?

前端 未结 14 1633
予麋鹿
予麋鹿 2020-12-01 00:08

I have a FragmentActivity using a ViewPager to serve several fragments. Each is a ListFragment with the following layout:



        
14条回答
  •  不思量自难忘°
    2020-12-01 00:22

    Nothing of this worked on API27. I had to add this in the container of the layout, for me it was a ConstraintLayout:

    
    
    //Your layout
    
    
    

提交回复
热议问题