0

I have an in app keyboard that tries to behave like a system keyboard. So far it pops up from the bottom using Bottom Sheet, which is great.

However, unlike a system keyboard, it does not push the entire layout up when you select an EditText that might otherwise get hidden. So far all the solutions I saw on StackOverFlow seem to be about Soft/System Keyboard not an in-app implementation like mine.

Here is my activity with 3 Edit Texts

enter image description here

This is what happens if I click on the last Edit Text. It gets covered by the keyboard in blue enter image description here

This is how I want it to be. Everything getting pushed up.

enter image description here

How can I achieve this?

BeLambda
  • 887
  • 1
  • 10
  • 19
  • can you clarify what is the layout you're using? – EvOlaNdLuPiZ Jul 09 '18 at 20:46
  • I'm using CoordinatorLayout since BottomSheet requires a CoordinatorLayout. Maybe I shouldn't use BottomSheet? I am just using BottomSheet because of its clean sliding animation. – BeLambda Jul 09 '18 at 20:48
  • Possible duplicate of [Move layouts up when soft keyboard is shown?](https://stackoverflow.com/questions/1964789/move-layouts-up-when-soft-keyboard-is-shown) – Ugurcan Yildirim Jul 09 '18 at 20:51
  • @UgurcanYildirim That's for Soft Keyboard (system), not in App Keyboard. – BeLambda Jul 09 '18 at 20:54
  • using bottomsheet as a custom keyboard seems not the right approach. you cannot touch the items on background when you swipe the bottomsheet up. – Ugurcan Yildirim Jul 09 '18 at 20:59
  • @UgurcanYildirim I think you are confusing BottomSheetDialog with BottomSheet. I can definitely touch anything in the background when the BottomSheet is expanded. – BeLambda Jul 09 '18 at 21:00
  • what you can do is you can listen the sheet states (expanded, collapsed, dragging, etc.) using callback and adjust your views on the background accordingly. – Ugurcan Yildirim Jul 09 '18 at 21:06
  • How do I adjust my views? I'm thinking of putting them inside a ScrollView? – BeLambda Jul 09 '18 at 21:14

0 Answers0