qwertygamer qwertygamer - 2 years ago 118
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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download