1

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.

benomatis
  • 5,536
  • 7
  • 36
  • 59
Raman Branavitski
  • 864
  • 1
  • 9
  • 22

3 Answers3

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
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
-1

I experienced the same issue. Resolved it with 2 simple steps.

  1. 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
    
  2. Edit manifest for softinputmode.

Prabhuraj
  • 928
  • 2
  • 8
  • 14