Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to view First Edittext when virtual keyboard is visible

Tags:

android

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


1 Answers

Don't waste your time Just put

android:windowSoftInputMode="adjustPan"

in your AndroidManifest.xml in main activity.

like image 77
Yuvi Avatar answered Dec 30 '25 18:12

Yuvi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!