Android uses dialog style pop-up activity
•
Android
In Android, we often encounter activities that need dialog style pop-up boxes. First, we may think of setting Android: Layout in the XML layout file_ Height = "wrap_content" attribute to make the activity highly adaptive. Obviously, this is not enough. We also need to set a custom style for its dialogactivity
Then at androidmanifest Set the dialogactivity style in XML to our custom dialogstyle
The following is the code of the layout
Next, let's see if the renderings are what we want
Source code download: http://xiazai.jb51.net/201609/yuanma/DialogActivity (jb51.net). rar
The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码