Keyboard hides my half of edit-text and button below it even in scroll view
<p>I am having trouble with  keyboard covers my edit-text and half of button even in scroll view.</p>

<p>here's my layout , Please tell me how should i resolve this problem. Their are many questions on this topic but none of them s working for me.</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:background="@drawable/bg"
    android:layout_height="match_parent"&gt;
    &lt;ScrollView
        android:layout_width="match_parent"
        android:fillViewport="true"

        android:layout_height="match_parent"&gt;

    &lt;RelativeLayout

        android:layout_width="match_parent"
        android:layout_height="wrap_content"

        android:orientation="vertical"&gt;

        &lt;LinearLayout
            android:layout_width="match_parent"

            android:layout_height="wrap_content"
            android:layout_gravity="bottom"
            android:orientation="vertical"
            android:paddingBottom="60dp"
            android:layout_alignParentBottom="true"
            android:layout_alignParentLeft="true"
            android:layout_alignParentStart="true"&gt;


            &lt;LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:gravity="center"
                android:paddingBottom="10dp"
                android:paddingTop="10dp"&gt;

                &lt;TableRow
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginBottom="@dimen/abc_action_bar_subtitle_bottom_margin_material"
                    android:layout_marginLeft="@dimen/abc_action_bar_overflow_padding_end_material"
                    android:layout_marginRight="@dimen/abc_action_bar_overflow_padding_end_material"
                    android:layout_marginTop="@dimen/abc_action_bar_subtitle_bottom_margin_material"
                    android:background="@drawable/login_layout_bg"
                    android:paddingBottom="10dp"
                    android:paddingLeft="10dp"
                    android:paddingRight="10dp"
                    android:paddingTop="10dp"&gt;

                    &lt;EditText
                        android:id="@+id/reg_email"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_gravity="center"
                        android:layout_weight="1"
                        android:background="@android:color/transparent"
                        android:hint="Username"
                        android:inputType="textEmailAddress"
                        android:singleLine="true"

                        android:textColor="@color/textcolor3"
                        android:textColorHint="@color/about_libraries_card_dark" /&gt;

                    &lt;View
                        android:layout_width="0.5dp"
                        android:layout_height="match_parent"
                        android:background="@color/md_grey_700" /&gt;

                    &lt;ImageView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="center"
                        android:src="@drawable/client_icon" /&gt;
                &lt;/TableRow&gt;
            &lt;/LinearLayout&gt;

            &lt;LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:gravity="center"
                android:paddingBottom="10dp"
                android:paddingTop="10dp"&gt;

                &lt;TableRow
                    android:id="@+id/register"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginBottom="@dimen/abc_action_bar_overflow_padding_end_material"
                    android:layout_marginLeft="@dimen/abc_action_bar_overflow_padding_end_material"
                    android:layout_marginRight="@dimen/abc_action_bar_overflow_padding_end_material"
                    android:layout_marginTop="@dimen/abc_action_bar_subtitle_bottom_margin_material"
                    android:background="@drawable/login_btn_bg"
                    android:padding="@dimen/abc_action_bar_overflow_padding_end_material"&gt;

                    &lt;TextView
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:gravity="center"
                        android:text="Register"
                        android:textColor="@android:color/white" /&gt;
                &lt;/TableRow&gt;
            &lt;/LinearLayout&gt;
        &lt;/LinearLayout&gt;


    &lt;/RelativeLayout&gt;

    &lt;/ScrollView&gt;

&lt;/LinearLayout&gt;
</code></pre>