First define a style
Add in Style
<style name= "Mydialog" parent= "@android: Theme.dialog" > <item name= "Android:windowframe" > @null < /item> <item name= "Android:windownotitle" >true</item> <item name= "Android: Windowisfloating ">true</item> <item name=" Android:windowcontentoverlay "> @null </item> </style>
Then add an activity to the androidmainfest and add a note when adding
Android:theme= "@style/mydialog"
Then you can directly define the activity's layout file.
Here is a way to switch dialog
<pre style= "margin-top:0px; margin-bottom:0px; padding:0px; White-space:pre-wrap; Word-wrap:break-word; line-height:14.399999618530273px; font-family: ' Courier New '!important; ><span style= "margin:0px; padding:0px; line-height:1.5!important; " > </span>
//Initialize a dialog of your own definition
Dialog Dialog = new Mydialog (mydialogactivity.this,
R.style.mydialog);
Dialog.show ();
Define a dialog-style activity form yourself, and switch to the dialog method