У меня проблема с экраном изменения размера, когда клавиатура открыта. В Manifest i put android:windowSoftInputMode="adjustResize", но ничего не меняется. Контент создается динамически в ScrollView в LinearLayout и RelativLayout (relativeID). Теперь я не буду, когда клавиатура открыта для изменения размера и прокрутки для работы.
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/drawerLayout"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:fitsSystemWindows="true"
>
<RelativeLayout
android:id="@+id/relative"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:fitsSystemWindows="true">
<android.support.v7.widget.Toolbar
android:id="@+id/toolBarMenu"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:background="@color/purple"
android:minHeight="?attr/actionBarSize"
android:theme="?attr/actionBarTheme">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/tvToolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Home"
android:textColor="@color/white"
android:gravity="right"
android:layout_marginRight="10dp"
android:textSize="25dp"/>
</LinearLayout>
</android.support.v7.widget.Toolbar>
<ScrollView
android:id="@+id/scrollView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/tvDate"
android:fitsSystemWindows="true"
>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/layoutRel"
android:fitsSystemWindows="true">
<HorizontalScrollView
android:id="@+id/scrollImage"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true">
<LinearLayout
android:id="@+id/linearScroll"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:fitsSystemWindows="true"
android:layout_margin="5dp">
</LinearLayout>
</HorizontalScrollView>
<RelativeLayout
android:id="@+id/relativeID"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/scrollImage"
android:fitsSystemWindows="true"
/>
</RelativeLayout>
</ScrollView>
</RelativeLayout>
<android.support.design.widget.NavigationView
android:id="@+id/navigation"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
app:headerLayout="@layout/activity_header_layout">
</android.support.design.widget.NavigationView>
</android.support.v4.widget.DrawerLayout>
Любое решение для этого? Как я написал сверху, я попытался добавить в манифест и в макет android:fitsSystemWindows="true".