I have a View with a edittext
in it at top left side. Issue is that when soft key board appear it move up my whole parent view upside in which this edittext
is present. i used the adjustPan
and adjustResize
and all other properties in manifest
file but not helpful for me. I am facing this issue in a specific device.
Asked
Active
Viewed 1,852 times
1

Pratik
- 30,639
- 18
- 84
- 159

Asad Iqbal
- 304
- 4
- 16
-
when user tap on edittext , keyboard comes up and whole my UI goes upside that mash all things. – Asad Iqbal Dec 28 '12 at 06:51
-
yeah faced same thing early just removed focus from EditText , is it necessary to have focus on EditText ? – Ronak Mehta Dec 28 '12 at 06:52
-
i have no any focus on edittext but when user tap on edittext it will show up the keyboard – Asad Iqbal Dec 28 '12 at 06:58
-
see this http://stackoverflow.com/a/1662088/1218762 , this can solve your problem. – Ronak Mehta Dec 28 '12 at 06:59
2 Answers
4
use this
android:configChanges="keyboardHidden|orientation"
and
android:windowSoftInputMode="adjustPan"
Let me know using both this are helpful to you or not and also use scrollview
in the layout where your virtual keyboard is creating problem it also help a bit

Abhinav Singh Maurya
- 3,313
- 8
- 33
- 51
-
These are not helpful for me : "keyboardHidden|orientation" and adjustPan. please tell me what u mean by scrollView? U mean i put my editText in scrolview ? – Asad Iqbal Dec 28 '12 at 07:22
-
1no. use adjust pan and put your whole layout which is distroting in a scrollview – Abhinav Singh Maurya Dec 28 '12 at 07:44
0
It might need only one property in your android manifest.xml just set "adjustPan" it think that might help,just try it.

Bhavdip Sagar
- 1,951
- 15
- 27
-
Please make sure that in your layout of that activity should be relative so helpful,if you like to share your ui so we can make clear idea. – Bhavdip Sagar Dec 28 '12 at 07:06