Я расширяю BottomSheetDialogFragment
для отображения нижнего меню в приложении.Это макет, используемый для представления.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="true"
android:focusable="true"
android:foreground="?android:attr/selectableItemBackground"
app:cardCornerRadius="1dp"
app:cardElevation="2dp"
app:contentPaddingBottom="16dp"
app:contentPaddingTop="16dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginStart="32dp"
android:text="menu 1"/>
</android.support.v7.widget.CardView>
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="1px"
android:clickable="true"
android:focusable="true"
android:foreground="?android:attr/selectableItemBackground"
app:cardCornerRadius="1dp"
app:cardElevation="2dp"
app:contentPaddingBottom="16dp"
app:contentPaddingTop="16dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginStart="32dp"
android:text="menu 2"/>
</android.support.v7.widget.CardView>
</LinearLayout>
Моя проблема заключается в том, что при запуске приложения на ChromeOS в полноэкранном режиме BottomSheetDialogFragment
отображается неправильно.
Приложение на полном экране
Когда приложение работает в оконном режиме, BottomSheetDialogFragment
рисует правильно.
Приложение в оконном режиме
Когдая переключаю приложение на весь экран с другим приложением, приложение показывает корректно
приложение на полном экране - после переключения приложения с Keep
версия Google Chrome OS - 69.0.3497.95 (стабильная версия)