Key points of knowledge,
Style,shape
1,dialog go to the title
can use the theme to go to the title, as long as there
<item name= "Windowactionbar" >false</item>
<item name= "Windownotitle" >true</item>
Themes have these two attributes, you can, for example
Android. R.style.theme_devicedefault_light_dialog_noactionbar Themes
Or
Dialog.requestwindowfeature (Window.feature_no_title);
2. Go to the background
Use themes to get to the background
<item name= "Windowbackground" > @color/transparent</item>
<item name= "Windowbackground" > @null </item>
Use code to get to the background
Dialog.getwindow (). Setbackgrounddrawableresource (Android. r.color.transparent);//go to the background
3. Rounded Rectangle
dialog layout using shape
Shape's corners set rounded corners that can be rounded in four corners of a rectangle
such as: <corners android:radius= "10DP"/>
Note: If the layout uses this shape, it is better to set the margin or padding, or it may be overwritten by its content to cause the fillet settings to fail, because the contents of the layout if there is set background, it will be overwritten
android Dialog go to title, rounded rectangle, go background