次の問題があります。私のレイアウトのキーボードで特定のレイアウトを移動しないようにします。
構造がある:私の活動の
android:windowSoftInputMode="adjustResize"
が、問題は、フッタは、キーボード、オープンに上がっていくということです。
<RelativeLayout>
<AppBarLayout>
<Toolbar></Toolbar>
</AppBarLayout>
<FrameLayout> Here I load fragments </FrameLayout>
<Footer></Footer>
</RelativeLayout>
私は機能を使用したいと思います。フッタだけを動かすのを防ぐ方法はわかりませんが、他のすべてのビューは移動しません。私は解決のための日を探していますが、成功はありません。
私が設定:
android:windowSoftInputMode="adjustPan"
フッターが良いですどの動いていないが、のEditTextでフォームを迷惑と悪いUI/UXでキーボードで覆われています。
私のフッターはここ
android:layout_alignParentBottom="true"
は完全なXMLでいる:事前に
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/activity_logged_in"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.design.widget.AppBarLayout
android:id="@+id/main_app_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
<android.support.v7.widget.Toolbar
android:id="@+id/main_app_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light">
</android.support.v7.widget.Toolbar>
</android.support.design.widget.AppBarLayout>
<LinearLayout
android:id="@+id/bottom_navigation"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_alignParentBottom="true"
android:layout_alignParentEnd="true"
android:layout_alignParentStart="true"
android:orientation="horizontal"
android:paddingBottom="5dp"
android:paddingTop="5dp">
<!-- Footer goes here -->
</LinearLayout>
<FrameLayout
android:id="@+id/fragment_logged_in_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@id/bottom_navigation"
android:layout_below="@id/main_app_bar" />
</RelativeLayout>
おかげ
フッターを「親ボトムに合わせる」ようにしてみましたか?理解しやすい完全なxmlコードを投稿してください。 –
はい、でも同じです。 –
理解しやすい完全なxmlコードを投稿してください。 –