Keyboard hides EditText

3

I have an activity with EditText to enter values. Whenever the keyboard appears, the editText is no longer visible (the keyboard hides EditText ).

I tried to put in Manifest in the referring activity the following command:

android:windowSoftInputMode="adjustPan|adjustResize" 

However the keyboard when it appears continues to hide EditText and I can not see what is being written. The EditText is this:

<EditText android:id="@+id/EditTextMeta1"
                android:layout_height="70dp"
                android:background="@drawable/edit_text_plafond2"
                android:textSize="14dp"
                android:paddingTop="30dp"
                android:inputType="number"
                android:layout_width="60dp"
                android:gravity="right"
                android:maxLength="4"/>

Can anyone help?

    
asked by anonymous 08.03.2015 / 13:48

3 answers

1

I had a very similar problem and I managed to solve it, if you want to use it as a reference:

Space between Edittext and keyboard no android

Try using your 'adjustResize | stateAlwaysHidden' manifest and put 'android: layout_marginBottom' in edittext

    
15.05.2017 / 09:39
0

You should use this way

<ScrolView
    android:id="@+id/scroll"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

    <EditText android:id="@+id/EditTextMeta1"
        android:layout_height="70dp"
        android:background="@drawable/edit_text_plafond2"
        android:textSize="14dp"
        android:paddingTop="30dp"
        android:inputType="number"
        android:layout_width="60dp"
        android:gravity="right"
        android:maxLength="4"/> 
</ScrolView>
    
08.03.2015 / 16:50
0

Try this:

<ScrollView
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <EditText
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:inputType="number"
        android:maxLength="4"
        android:layout_gravity="center"
        android:paddingTop="30dp" />
</ScrollView>

It worked for me!

    
11.12.2017 / 13:34