How to hide the keyboard after moving another tab using the method in android ? My Code switch in tabs - how methond hide keybord
public Fragment getItem(int position) {
        Fragment fragment = null;
        switch (position){
            case 0:
                fragment = new Tab1Fragment();
                break;
            case 1:
                fragment = new Tab2Fragment();
                break;
            default:
                fragment = null;
                break;
        }
        return fragment;
    }
 
     
     
    