Всем доброго времени суток, подскажите почему содержимое не отображаеться на весь диалог?
1. Объявил стиль:
—— styles.xml ——-
<style name="my_dialog" parent="Theme.AppCompat.Light.Dialog.Alert">
<item name="windowMinWidthMajor">70%</item>
<item name="windowMinWidthMinor">70%</item>
<item name="windowFixedHeightMajor">80%</item>
<item name="windowFixedHeightMinor">80%</item>
</style>
2. layout:
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="
http://schemas.android.com/apk/res/android"
xmlns:app="
http://schemas.android.com/apk/res-auto"
xmlns:tools="
http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Test"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
3.
dialog = new AlertDialog.Builder(this, R.style.my_dialog).setCancelable(false).create();
View dialogView = LayoutInflater.from(this).inflate(R.layout.dialog_create_group, null, false);
dialog.setView(dialogView);
dialog.show();
Диалог большой а вот кнопка не хочет внизу отображаться, подскажите пожалуйста почему?