UI Components are not moving up when keyboard appears (ANDROID)
<p>so its a common issue i guess thats why i easily found so many related issues like <a href="https://stackoverflow.com/questions/9111813/how-to-move-the-layout-up-when-the-soft-keyboard-is-shown-android">this</a> , <a href="https://stackoverflow.com/questions/1964789/move-layouts-up-when-soft-keyboard-is-shown">this</a> and i also followed google's android developer's <a href="http://android-developers.blogspot.in/2009/04/updating-applications-for-on-screen.html" rel="nofollow noreferrer">article</a> which is related to my problem.  but nothing worked for me , i want to move up my button (which is at the bottom of screen) when keyboard appears<br>
my activist's Xml:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bgfl"
android:windowSoftInputMode="stateVisible|adjustResize"&gt; // i tried to set the windowSoftInputMode right here  

&lt;RelativeLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#9bef414c"&gt;

&lt;EditText
    android:layout_width="wrap_content"
    android:layout_height="40dp"
    android:inputType="textEmailAddress"
    android:ems="10"
    android:id="@+id/editText"
    android:layout_centerVertical="true"
    android:layout_alignParentRight="true"
    android:layout_alignParentEnd="true"
    android:layout_alignParentLeft="true"
    android:layout_alignParentStart="true"
    android:layout_marginLeft="10dp"
    android:layout_marginRight="10dp"
    android:background="#ffffff"
    android:hint="Email" /&gt;

&lt;TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:textAppearance="?android:attr/textAppearanceSmall"
    android:text="bla bla bla bla bla"
    android:id="@+id/textView6"
    android:layout_above="@+id/editText"
    android:layout_centerHorizontal="true"
    android:layout_marginBottom="40dp"
    android:textSize="17sp"
    android:textColor="@color/light_font"
    android:shadowColor="@color/text_shadow"
    android:shadowDx="1"
    android:shadowDy="1"
    android:shadowRadius="8"/&gt;

&lt;TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:textAppearance="?android:attr/textAppearanceLarge"
    android:text="BLAAAAAAAAAAAAA"
    android:id="@+id/textView9"
    android:layout_above="@+id/textView6"
    android:layout_centerHorizontal="true"
    android:textAlignment="center"
    android:textIsSelectable="false"
    android:textSize="60sp"
    android:textColor="@color/light_font"
    android:shadowColor="@color/text_shadow"
    android:shadowDx="1"
    android:shadowDy="1"
    android:shadowRadius="8"/&gt;

    &lt;Button
        android:layout_width="match_parent"
        android:layout_height="50dp"
        android:text="Next"
        android:id="@+id/button"
        android:layout_alignParentBottom="true"
        android:layout_centerHorizontal="true"
        android:textSize="20sp"
        android:background="#ffffff"
        android:textColor="@color/colorAccent" /&gt;

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

<p></p>

<p>i also tried to do it programmatically 
in my activity's class :</p>

<pre><code>getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
</code></pre>

<p>the above didn't worked too</p>

<p>i also did this in my manifest :</p>

<pre><code> &lt;myActivity 
 android:windowSoftInputMode="stateVisible|adjustResize"&gt;
</code></pre>

<p>it didn't  worked too.</p>

<p>seems like i'm missing something anyone can point it out to me ?? </p>