I searched everywhere to solve my problem, but can not find the answer. Here is the problem.
I have a layout that looks like

Now when I click on the edit text (search bar), I want the following to happen

The soft keyboard should basically push the contents of all screens so that the search bar is at the top of the screen and its list is below it so that the results are displayed when searching for content. I tried to set android:windowSoftInputMode="adjustPan" in the Activity in the manifest, but that did not work. I set the scroll view as the main container in the main layout, which contains fragments, but this also did not work. I tried to add the edit text (search bar) as a title to the list, but that also didn't work. Each time the keyboard pushed the edit text, but closed the list view. Is there any way to make this work?
android
Neil Jul 02 2018-12-12T00: 00Z
source share