I have vertical linear layout with multiline edit text and 2 buttons below. When I try to write something the keyboard hide these views. I tried to set android:windowSoftInputMode="adjustResize"
and android:windowSoftInputMode="adjustPan"
but its not help. Edit text rise above the keyboard but buttons are still not visible. Help me to resolve my problem.
Asked
Active
Viewed 650 times
1

benomatis
- 5,536
- 7
- 36
- 59

Raman Branavitski
- 864
- 1
- 9
- 22
-
try this : android:windowSoftInputMode="stateHidden|adjustResize" – Haresh Chhelana Oct 20 '14 at 10:03
-
possible duplicate of [Android soft keyboard hides button](http://stackoverflow.com/questions/21906912/android-soft-keyboard-hides-button) – prettyvoid Oct 20 '14 at 10:07
3 Answers
0
Put your LinearLayout inside a ScrollView. That way you can scroll to the other views after the EditText fields gain focus.

AndroidNoob
- 2,771
- 2
- 40
- 53
-
very bad solution, its forbide me to scroll edit text. To do this i need to write additional code. – Raman Branavitski Oct 20 '14 at 10:16
0
When you go for edit text, the keyboard shows up for input and hides the button or other widget when you are editing. It should dismiss when you are done with edittext. This should work.
<activity
android:name=".activityname"
android:label="@string/app_name"
android:windowSoftInputMode="adjustPan|adjustResize" >

Prabhuraj
- 928
- 2
- 8
- 14
-
already tried this. Doesn't work. Its rise edit text but buttons still under the keyboard. – Raman Branavitski Oct 20 '14 at 10:20
-
Am not clear with your question. Do you want to dismiss the keyboard after edit text ? or do you want to show the button even when editing text ? – Prabhuraj Oct 20 '14 at 10:27
-1
I experienced the same issue. Resolved it with 2 simple steps.
Put your view inside scroll
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" >
<LinearLayout your code
Edit manifest for softinputmode.

Prabhuraj
- 928
- 2
- 8
- 14
-
very bad idea to put scrollable views ( edit text) to scroll view – Raman Branavitski Oct 20 '14 at 11:06