I have a dialog with an `EditText` on it, and it's with `android:layout_width="wrap_content"`

Before I call the show method, I set some text on it with `setText("Some string")`.

And when the `show()` method is called, the dialog isn't resized, and the EditText don't appear.

Is there a way to resize it before call `show()`.

Here is the code:

```
            Dialog dialog = new Dialog(this);
            dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
            dialog.setContentView(R.layout.dialog_supply_history);

            EditText txtStartDate = dialog.findViewById(R.id.txtStartDate);
            txtStartDate.setText(sdf.format(startDate.getTime()));
            EditText txtFinalDate = dialog.findViewById(R.id.txtFinalDate);
            txtFinalDate.setText(sdf.format(finalDate.getTime()));

            dialog.show();

```

The layout:

```
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout 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">

    <TextView
        android:id="@+id/lblStartDate"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="8dp"
        android:layout_marginLeft="8dp"
        android:layout_marginEnd="8dp"
        android:layout_marginRight="8dp"
        android:text="@string/lblStartDate"
        app:layout_constraintBaseline_toBaselineOf="@+id/txtStartDate"
        app:layout_constraintEnd_toStartOf="@+id/imgStartDate"
        app:layout_constraintStart_toStartOf="parent" />

    <ImageView
        android:id="@+id/imgStartDate"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="8dp"
        android:layout_marginLeft="8dp"
        android:layout_marginEnd="8dp"
        android:layout_marginRight="8dp"
        app:layout_constraintBottom_toBottomOf="@+id/txtStartDate"
        app:layout_constraintEnd_toStartOf="@+id/txtStartDate"
        app:layout_constraintStart_toEndOf="@+id/lblStartDate"
        app:layout_constraintTop_toTopOf="@+id/txtStartDate"
        app:srcCompat="@android:drawable/ic_menu_today" />

    <EditText
        android:id="@+id/txtStartDate"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="8dp"
        android:layout_marginLeft="8dp"
        android:layout_marginTop="8dp"
        android:layout_marginEnd="8dp"
        android:layout_marginRight="8dp"
        android:focusable="false"
        android:inputType="date"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toEndOf="@+id/imgStartDate"
        app:layout_constraintTop_toTopOf="parent" />

    <TextView
        android:id="@+id/lblFinalDate"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="8dp"
        android:layout_marginLeft="8dp"
        android:text="@string/lblFinalDate"
        app:layout_constraintBaseline_toBaselineOf="@+id/txtFinalDate"
        app:layout_constraintStart_toStartOf="parent" />

    <ImageView
        android:id="@+id/imgFinalDate"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginEnd="8dp"
        android:layout_marginRight="8dp"
        app:layout_constraintBottom_toBottomOf="@+id/txtFinalDate"
        app:layout_constraintEnd_toStartOf="@+id/txtFinalDate"
        app:layout_constraintStart_toStartOf="@+id/imgStartDate"
        app:layout_constraintTop_toTopOf="@+id/txtFinalDate"
        app:srcCompat="@android:drawable/ic_menu_today" />

    <EditText
        android:id="@+id/txtFinalDate"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="8dp"
        android:layout_marginLeft="8dp"
        android:layout_marginTop="8dp"
        android:layout_marginEnd="8dp"
        android:layout_marginRight="8dp"
        android:focusable="false"
        android:inputType="date"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toEndOf="@+id/imgFinalDate"
        app:layout_constraintTop_toBottomOf="@+id/txtStartDate" />

</android.support.constraint.ConstraintLayout>

```