I am glad using this library because it's so simple to use. Sometimes, I have a problem with sheet when I after editing field like EditText, the sheet appears above the keyboard which is going to hide but as long as the keyboard hide first, it seems to be fine. My problem solved by hiding the keyboard programatically first then show the bottom sheet
View view = this.getCurrentFocus();
if (view != null) {
Log.d(TAG, "View is not null");
InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
if (imm != null) {
imm.hideSoftInputFromWindow(view.getWindowToken(), 0);
bottomSheetLayout.showWithSheetView(view);
}
}
I am glad using this library because it's so simple to use. Sometimes, I have a problem with sheet when I after editing field like
EditText
, the sheet appears above the keyboard which is going to hide but as long as the keyboard hide first, it seems to be fine. My problem solved by hiding the keyboard programatically first then show thebottom sheet
Maybe this could help others :)