qwertygamer qwertygamer - 14 days ago 5
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 (

EditText
) in on of my fragments screen shot

I want the tabs to hide behind the keypad.

Answer

you can hide your tablayout when keyboard is visible

if(keyboardVisible)
      tabHost.setVisibility( View.GONE );    
 else
      tabHost.setVisibility( View.VISIBLE );

refer here to detect keyboard visibility