I want to resize or pan layout when keyboard is displayed. Here's my source code.
activity_forget_password.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/forgot_password_bg"
android:scaleType="fitXY"
android:largeHeap="true"/>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="15dp">
<com.opkix.app.utils.OpenSassTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/forget_password_introduce_string"
android:layout_alignParentBottom="true"
android:textColor="@android:color/white"
android:textSize="12sp"/>
</RelativeLayout>
</RelativeLayout>
manifest.xml
<activity android:name=".activities.auth.ForgetPasswordActivity"
android:windowSoftInputMode="adjustPan"
android:noHistory="true">
As you can see from my source code I added fitsSystemWindows and windowSoftInputMode.
Can anyone please help me?