Best code to hide soft Keyboard based on user clicks,in Android

//On click for Login screen layout..
    public void layoutOnClick(View v)
    {
        System.out.println("***clicked");
        InputMethodManager inputManager = (InputMethodManager)
        this.getSystemService(Context.INPUT_METHOD_SERVICE);
        inputManager.toggleSoftInput(0, 0);

    }

Comments

Popular posts from this blog

Custom Dialog with no title and full screen in Android

Best working code to set Date limits on Date Picker Dialog,in Android

code to display .pdf,.text,.DOC,.DOCX,.doc extension files exists in SDCard