how to close keypad in android apps
how to hide keyboard in android after use of editText
I used a editText for input number and i assigned editText to editbox1 variable ie
editbox1 = (EditText) findViewById(R.id.editText1);
For Closing or hiding keypad in android used InputMethodManager
add following code for close keyboard in android
//To hide key board
InputMethodManager MyKeboard = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
MyKeboard.hideSoftInputFromWindow(editbox1.getWindowToken(), 0);
Here "MyKeboard" is variable and "editbox1" is name of editText.
For using above code, we have to import following header file
import android.view.inputmethod.InputMethodManager;
how to hide keyboard in android after use of editText
I used a editText for input number and i assigned editText to editbox1 variable ie
editbox1 = (EditText) findViewById(R.id.editText1);
For Closing or hiding keypad in android used InputMethodManager
add following code for close keyboard in android
//To hide key board
InputMethodManager MyKeboard = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
MyKeboard.hideSoftInputFromWindow(editbox1.getWindowToken(), 0);
Here "MyKeboard" is variable and "editbox1" is name of editText.
For using above code, we have to import following header file
import android.view.inputmethod.InputMethodManager;
Nice article
ReplyDeletetableau course in Marathahalli
best tableau training in Marathahalli
tableau training in Marathahalli
tableau training in Marathahalli
tableau certification in Marathahalli
tableau training institutes in Marathahalli
Awesome Blog
ReplyDeleteios training in bangalore
Nice blog..
ReplyDeletebest training institute for hadoop in BTM
best big data hadoop training in BTM
hadoop training in btm
hadoop training institutes in btm
hadoop course in btm
Nice Blog
ReplyDeletebest android training center in bangalore
best android development institute in bangalore
android training institutes in bangalore
ios training in bangalore
android training in bangalore
mobile app development training in bangalore
Excellent Blog. I really want to admire the quality of this post. I like the way of your presentation of ideas, views and valuable content. No doubt you are doing great work. I’ll be waiting for your next post. Thanks .Keep it up! Kindly visit us @
ReplyDeleteChristmas Gift Boxes | Wallet Box
Perfume Box Manufacturer | Candle Packaging Boxes | Luxury Leather Box | Luxury Clothes Box | Luxury Cosmetics Box
Shoe Box Manufacturer | Luxury Watch Box
Wow, what an awesome spot to spend hours and hours! It's beautiful and I'm also surprised that you had it all to yourselves!
ReplyDeleteKindly visit us @ Best HIV Treatment in India | Top HIV Hospital in India
HIV AIDS Treatment in Mumbai | HIV Specialist in Bangalore
HIV Positive Treatment in India | Medicine for AIDS in India