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?
for Activity in its oncreate methode insert below line
and for fragments in its onCreate method
similar issue i was facing with my layout which consist scroll view inside. Whenever i try to select text in EditText,Copy/Cut/Paste action bar gets moved up with below code as such it does not resize layout
By modifying it to as below
1) AndroidManifest.xml
2) style.xml file ,in activity style
It worked.!!!!!!!!!!!!
Here is full manifest code
You can also use this code in
onCreate()
method:There are 3 steps to follow to scroll screen up.
P.S. Don't forget to add android:layout_gravity="center" in parent Relative layout.
In AndroidManifest.xml, don't forget to set:
and for RelativeLayout inside ScrollView ,set :
it will be okay