I think i tried all the solutions on internet but at my login screen login button is still under the keyboard. I want to scroll to the bottom automatically when keyboard appears. Here is my xml codes
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/ScrollView01"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true"
android:scrollbars="none" >
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:theme="@android:style/Theme.NoTitleBar"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:background="#13a7d8"
>
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="-120dp"
android:src="@drawable/logo_login" />
<EditText
android:id="@+id/editText1"
android:layout_width="220dp"
android:layout_height="wrap_content"
android:layout_below="@+id/textView1"
android:layout_centerHorizontal="true"
android:ems="10"
android:inputType="textEmailAddress" />
<EditText
android:id="@+id/editText2"
android:layout_width="220dp"
android:layout_height="wrap_content"
android:layout_below="@+id/benimlabel2"
android:layout_centerHorizontal="true"
android:ems="10"
android:inputType="textPassword" />
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/imageView1"
android:layout_marginTop="-130dp"
android:layout_alignLeft="@+id/editText1"
android:textColor="#FFFFFF"
android:text="@string/eposta"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView
android:id="@+id/benimlabel2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/editText1"
android:layout_alignLeft="@+id/editText2"
android:textColor="#FFFFFF"
android:text="@string/sifre"
android:textAppearance="?android:attr/textAppearanceLarge" />
<Button
android:id="@+id/button1"
android:layout_width="220dp"
android:layout_height="wrap_content"
android:layout_below="@+id/editText2"
android:layout_centerHorizontal="true"
android:text="@string/girisyap" />
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/button1"
android:layout_centerHorizontal="true"
android:layout_marginTop="30dp"
android:text="Hesabın yoksa, hemen kayıt ol"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="#FFFFFF"
android:clickable="true"
android:onClick="kayitol" />
</RelativeLayout>
</ScrollView>
and I tried different solutions at manifest file
android:windowSoftInputMode="stateVisible|adjustPan"
other try
android:windowSoftInputMode="stateVisible"
how can i fix this?