I have a small demo chat UI application. This application has a bottom navigation bar. I need the bottom navigation bar to hide when the keyboard appears. Here is an example of the chat UI As you can see when you click in the EditText element, the keyboard appears but the bottom navigation bar stays visible. I have tried methods
Tag: android-softkeyboard
Hide keyboard when navigating from a fragment to another
I have a Fragment that contains an Edit Text. When the Edit Text is pressed, the keyboard is being shown. When pressed the Save button in the upper corner, the application returns to the previous fragment, but the keyboard persists. I would like the keyboard to be hidden when navigating to the previous fragment. Please, note that I tried this
How to hide the soft keyboard inside a fragment?
I have a FragmentActivity using a ViewPager to serve several fragments. Each is a ListFragment with the following layout: When starting the activity, the soft keyboard shows. To remedy this, I did the following inside the fragment: I save the incoming ViewGroup container parameter from onCreateView as a way to access the window token for the main activity. This runs