开发者

Android Floating popup 'window' options?

开发者 https://www.devze.com 2023-01-10 11:22 出处:网络
I wish to have an 80% by 80% sized view popup, grey out the background and take focus? In essence it\'s a \"sub\" view that is model.

I wish to have an 80% by 80% sized view popup, grey out the background and take focus?

In essence it's a "sub" view that is model.

Strateg开发者_StackOverflow社区ies ?


You can use an activity with the dialog theme by specifying it in the manifest like this:

<activity android:theme="@android:style/Theme.Dialog">

This will cause it to be a popup as described. To achieve the 80% x 80%, you need to configure your activity's layout to take up that much space.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号