In my application I have a ListView with a footer that contains a custom view with an EditText inside. At the top sits an action bar. The activity currently uses SOFT_INPUT_ADJUST_RESIZE
(adjustResize
) as soft input mode and does not close the keyboard when scrolling.
To show more of the list I wanted to remove the keyboard when scrolling and to get a smoother scrolling behavior I want to change so that SOFT_INPUT_ADJUST_PAN
(adjustPan
) is used. However, if I change to adjustPan
, the whole view, including the action bar, is pushed up. I'd like the list view to be pushed but the action bar stay at the top at all times. Is that possible to do? If not, is it possible to use adjustResize
and get a smooth resize animation?
So far I have tried:
- Requesting
Window.FEATURE_ACTION_BAR_OVERLAY
, but that did not help although the documentation sounded promising. - Moving around the action bar container depending on if the soft keyboard is visible or not, which ended up looking like a massively unstable hack so I scrapped it.
- So far I have ruled out
adjustResize
, due to the drawing behavior that happens when scrolling, minimizing the keyboard and resizing the listview at the same time. Is there a way to make a smooth animated resize?