I have a login screen with scroll view and I'm setting the layout the full screen like so
if (VERSION.SDK_INT >= 21) {
getWindow().setStatusBarColor(Color.TRANSPARENT);
getWindow().getDecorView().setSystemUiVisibility(
View.SYSTEM_UI_FLAG_LAYOUT_STABLE
| View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);
}
The problem is I'm not able to scroll when the keyboard pops up even though I have a scroll view. Here's my layout
<ScrollView
android:id="@+id/scrollView"
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:background="@drawable/ooru"
android:fitsSystemWindows="false"
tools:context=".android.LoginActivity">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<ImageView
android:id="@+id/branding_login"
android:layout_width="170dp"
android:layout_height="35dp"
android:layout_centerHorizontal="true"
android:layout_gravity="center_horizontal"
android:layout_marginTop="55dp"
android:scaleType="centerInside"
android:src="@drawable/branding"/>
<ImageView
android:id="@+id/logged_in_icon"
android:layout_width="54dp"
android:layout_height="54dp"
android:layout_below="@id/branding_login"
android:layout_centerHorizontal="true"
android:layout_gravity="center_horizontal"
android:layout_marginTop="42dp"
android:scaleType="centerCrop"
android:src="@drawable/ic_fan_icon"/>
.... //More views
</RelativeLayout>
</ScrollView>
I tried searching about the problem and some suggested adding android:windowSoftInputMode="adjustResize", it doesn't work for me.
P.S: The parent theme for this activity is Theme.AppCompat.Light.NoActionBar