I have an edit text in my page and I need to adjust screen to show the values typing in it.
I have action bar in my page and I have given android:windowSoftInputMode="adjustPan|stateAlwaysHidden"
.
When I run the app, I touch on my edit text and keyboard pops up. The edit text comes on top of the keyboard now which is right. But when I start typing this edit text goes down the keyboard.
This doesn't happen in all devices. In Samsung S3 its having this issue. How to solve this? Please help me out.
Edit:
My edit ext code is as below:
<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" />