I have a few elements in a RelativeView with the align bottom attribute set, when the soft keyboard comes up the elements are hidden by the soft keyboard.
I would like them to move up so that if there is enough screen space they are shown above the keyboard, or to make the section above the keyboard scrollable so the user can still see the elements.
Any ideas on how to approach this?
I tried a method of Diego Ramírez, it works. In AndroidManifest:
In activity_main.xml:
Add in AndroidManifest.xml for your activity:
if you are in fragments then you have to add the below code to your onCreate on your activity it solves issue for me
Alright this is very late however I've discovered that if you add a List View under your edit text then the keyboard will move all layouts under that edittext without moving the ListView
This is the only solution that worked for me.
Yes, check out this article on the Android developers' site which describes how the framework handles the soft keyboard appearing.
The
android:windowSoftInputMode
attribute can be used to specify what happens on a per-activity basis: whether the layout is resized or whether it scrolls etc.Make changes in the activity of your Manifest file like
OR
Make changes in your
onCreate()
method in the activity class like