0
私はアンドロイドアプリで作業しています。画面上部のツールバーと画面下部のナビゲーションバーを使用しています。私は単一のアクティビティを使用してツールバー間のコンテンツを変更するための上部および下部のツールバーとフラグメントを作成しています。ただし、フラグメントの内容が画面のサイズを超えると、下のバーが消えます。ここでフラグメントが画面いっぱいになると、Android下部ツールバーが消える
は私の自宅の活動xmlです:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_home"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.rentables.testcenter.HomeActivity">
<include
android:id="@+id/toolbar_main"
layout="@layout/toolbar_main"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<fragment android:name="com.rentables.testcenter.HomeFragment"
android:id="@+id/fragment_place"
android:layout_weight="0"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:layout="@layout/fragment_home" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:gravity="bottom">
<include
android:id="@+id/toolbar_navigate"
layout="@layout/toolbar_navigate"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center|bottom"/>
</LinearLayout>
</LinearLayout>
イムそれが原因で私が持っている内部リニアレイアウトのですが、私はナビゲーションバーが下部に静的に滞在して取得する方法が他に確認されませんでした推測します。どんな助けも素晴らしいだろう。おかげで