Show Hide soft keyboard programmatically in Android

How can I show hide soft keyboard programmatically when user touches outside widget? How can I show soft keyboard when user click on any button? So many question? Answer is here.

To Hide Soft Keyboard

Here, “FOCUSABLE_VIEW” can be any view which is visible on screen like

To Show Soft Keyboard,

Here, “EDITABLE_VIEW” can be any view which has focus on screen like

Share on Facebook0Share on Google+3Tweet about this on TwitterShare on LinkedIn0Share on Reddit0Pin on Pinterest0Share on Tumblr0Email this to someone