0
Good morning, I made a custom dialog using a Fragment to customize it, but I need to make it have rounded corners.
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/shape_modal_dialog">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/title"
style="@style/Title_white"
android:text="Atenção"
android:textStyle="bold"
android:gravity="center"
android:layout_marginTop="10dp"
android:layout_marginBottom="15dp"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/text"
android:text="Você tem mais de 18 anos?"
android:textColor="@color/white"
android:layout_below="@+id/title"
android:gravity="center"
android:layout_marginBottom="34dp"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="50dp"
android:id="@+id/button"
android:weightSum="10"
android:orientation="horizontal"
android:layout_below="@+id/text">
<TextView
android:layout_width="0dp"
android:layout_height="50dp"
android:layout_weight="5"
android:id="@+id/btn_no"
android:text="Não"
android:clickable="true"
android:textColor="@color/red"
android:gravity="center"
android:background="@drawable/button_effect_secondary_dialog"/>
<TextView
android:layout_width="0dp"
android:layout_height="50dp"
android:layout_weight="5"
android:id="@+id/btn_yes"
android:clickable="true"
android:text="Sim"
android:textColor="@color/white"
android:gravity="center"
android:background="@drawable/button_effect_primary_dialog" />
</LinearLayout>
</RelativeLayout>
can add @drawable/shape_modal_dialog ? Thank you
– Thiago Luiz Domacoski