I have one Activity
that is a type Dialog
when opened and I want to round the corners on theStyle
What I have is the following, however it doesn't work
<style name="formularios" parent="Base.Theme.AppCompat.Light.Dialog">
<item name="android:background">@color/formulario</item>
<item name="android:radius">@dimen/from</item>
</style>
and in dimensions
dimen name="from">15dp</dimen>
My has the formsactivity
theme applied which extends from . Any ideas to implement this via XML or code?Style
According to this SO answer in English this can be achieved by creating an xml containing a shape .
This xml must be located in the folder
Drawable
and will have the following content:This file should be used as
background
in the layout xml as follows:And finally put the
BackgroundDrawable
transparentdialog
one as follows:Documentation
Custom Dialog
in which there are examples of dialogs with rounded edges.