Learn multiple methods to programmatically hide Android soft keyboard on button click and touch outside. Complete code examples with InputMethodManager and touch event handling.