qwertygamer qwertygamer - 10 months ago 50
Android Question

How to hide FragmentTabHost android layout when soft keyboard appears?

How to fix the tab at the bottom it moves up when I am trying to use the search (

) in on of my fragments screen shot

I want the tabs to hide behind the keypad.

Answer Source

you can hide your tablayout when keyboard is visible

      tabHost.setVisibility( View.GONE );    
      tabHost.setVisibility( View.VISIBLE );

refer here to detect keyboard visibility