Skip to content Skip to sidebar Skip to footer

Issue In Login Scrollview.. Parentbottom Elements Also Pop Up With Softkeyboard

Solution 1:

//try this
**AndroidManifest.xml**
android:windowSoftInputMode="stateHidden"

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:gravity="center"
    android:orientation="vertical"
    android:padding="5dp"
    tools:context=".Login" >

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="right">
        <ImageView
            android:id="@+id/logo"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_margin="5dp"
            android:contentDescription="@string/app_name"
            android:src="@drawable/logo_main" />

    </LinearLayout>

    <ScrollView
        android:id="@+id/sv_Login"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1"
        android:layout_marginTop="10dp" >

        <RelativeLayout
            android:id="@+id/rl_Login"
            android:layout_width="match_parent"
            android:layout_height="wrap_content" >

            //Inside this manage two editText for userId, Password


        </RelativeLayout>
    </ScrollView>
    <TextView
        android:id="@+id/tv_textBottom"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:clickable="true"
        android:text="@string/label_copyright"
        android:textColor="@color/text_grey"
        android:layout_marginTop="5dp"
        android:layout_marginBottom="5dp"/>

</LinearLayout>

Post a Comment for "Issue In Login Scrollview.. Parentbottom Elements Also Pop Up With Softkeyboard"