I have edit text on my page and I need to adjust the screen to display the entered values.
I have an action bar on my page and I gave android:windowSoftInputMode="adjustPan|stateAlwaysHidden".
When I launch the application, I touch the edit text and keyboard. Now the edit text is on top of the keyboard, which is true. But when I start typing, the edit text goes down the keyboard.
This does not happen on all devices. Samsung S3 has this problem. How to solve this? Please help me.
Edit:
My external code is as follows:
<EditText
android:id="@+id/name"
android:layout_width="300dp"
android:layout_height="50dp"
android:layout_below="@+id/empId"
android:layout_marginTop="10dp"
android:ellipsize="end"
android:hint="@string/name"
android:inputType="text"
android:maxLines="1"
android:padding="5dp"
android:textColor="@android:color/black" />
source
share