Add the following to the values/style. xml file:Code(If the file does not exist, create an XML file named style. xml)
<! -- Override system pop-up dialog --> <style name = "mydialogtheme" parent = "Android: theme. dialog "> <item name =" Android: windowframe "> @ null </item> <item name =" Android: incluwisfloating "> true </item> <item name =" Android: javaswistranslucent "> false </item> <item name =" Android: windownotitle "> true </item> <! -- Remove title --> <item name = "Android: windowcontentoverlay"> @ null </item> <item name = "Android: backgrounddimenabled "> false </item> <item name =" Android: windowbackground "> @ null </item> <! -- Remove background color -->
</Style>
Remove the background color border and set the background color in your layer.
Step 2 add Android: theme = "@ style/mydialogtheme" to your registered activity in androidmanifest. XML, which is the style name above.
<Activity Android: Name = ". logindialog" Android: theme = "@ style/mydialogtheme" Android: screenorientation = "portrait"/>
Pop-up Layer Method
Intent intent = new intent (detail_goods.this, logindialog. Class );
Startactivity (intent );