1

画面の下部に独自のナビゲーション バーを使用しています。すべてのデバイスで正常に動作しますが、Samsung Galaxy s10 では、この下部のナビゲーション バーが非表示になっています。これはソフトキーボタンバーのせいだと思います。ここから、Bottom soft NavigationBar が ListView と重なっています。テーマでこれを使用してみ<item name="android:windowDrawsSystemBarBackgrounds">false</item>ましたが、問題は解決しましたが、テーマでこのパラメータを使用すると、colorPrimaryDarkであるステータス バーの色が機能しません。

私のレイアウトファイルは

    <?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    >

    <android.support.design.widget.CoordinatorLayout
        android:id="@+id/home_coordinator"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1">

        <android.support.design.widget.AppBarLayout
            android:id="@+id/app_bar_area"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:fitsSystemWindows="true"
            android:background="@color/C12">

            <include layout="@layout/parts_search_header" />

            <com.astuetz.PagerSlidingTabStrip
                android:id="@+id/top_view_pager_tab_strip"
                android:background="@color/white"
                android:layout_width="match_parent"
                android:layout_height="40dp"
                android:layout_gravity="top|center_vertical"
                android:textColor="@color/C17"
                android:textSize="15dp"
                app:pstsIndicatorColor="@color/C10"
                app:pstsIndicatorHeight="3dp"
                app:pstsTabPaddingLeftRight="15dp"
                app:pstsTextColorSelected="@color/C11"
                app:pstsUnderlineColor="@color/border1"
                app:pstsUnderlineHeight="1dp"
                app:pstsShouldExpand="true"
                app:pstsTabBackground="@drawable/touchstates_tab_strip"
                />

        </android.support.design.widget.AppBarLayout>

        <FrameLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            app:layout_behavior="@string/appbar_scrolling_view_behavior">

            <android.support.v4.view.ViewPager
                android:id="@+id/top_view_pager"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                />

        </FrameLayout>


    </android.support.design.widget.CoordinatorLayout>

    <include layout="@layout/layout_footer_ad_view" />

    <!-- bottom_navigation -->
    <include layout="@layout/layout_bottom_navigation"/>
    <!-- /bottom_navigation -->
</LinearLayout>

参考までに画像を添付しました。この問題を解決する方法。

下のバーは Samsung Galaxy S10 に隠されています

ここに画像の説明を入力

4

0 に答える 0