开发者

Android Floating popup 'window' options?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜