アプリに BottomSheetDialog を実装しましたが、タブレットにインストールしてタブレットを横にすると、最初のクリックで完全に展開しません。最初に折りたたみ状態まで展開され、すべてを表示するには上にドラッグする必要があります。なぜこれを行うのですか?あなたのスタイルで変更できる設定はありますか?
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior"
app:behavior_peekHeight="0dp"
>
...
</LinearLayout>
val view = layoutInflater.inflate(R.layout.home_bottom_sheet_dialog, null)
val bottomSheetDialog = BottomSheetDialog(activity!!)
bottomSheetDialog.setContentView(view)
bottomSheetDialog.show()
私はkotlinでAPI 22 AndroidXを使用しています。