user1563124
user1563124

Reputation:

Unable to view First Edittext when virtual keyboard is visible

In the Linearlayout I have four Edittext Fields.When virtual Keyboard is opened I can't able to view the first edittext field.I can able to scroll from the second view, First view is partially visible. How to solve this.Thanks in advance.

<ScrollView android:layout_height="fill_parent"
    android:layout_width="fill_parent" android:id="@+id/scrlLogin"
    android:layout_below="@+id/Title" android:background="@drawable/screenbackground"
    android:scrollbars="none">
    <LinearLayout android:id="@+id/linearLayout1"
        android:layout_width="fill_parent" android:layout_height="wrap_content"
        android:orientation="vertical" android:layout_gravity="center">

             ..............
</LinearLayout >
</ScrollView >

My Screen Links are here

Normal Screen

With Virtual Keyboard

Upvotes: 3

Views: 276

Answers (1)

Yuvi
Yuvi

Reputation: 689

Don't waste your time Just put

android:windowSoftInputMode="adjustPan"

in your AndroidManifest.xml in main activity.

Upvotes: 2

Related Questions