Non-full screen Activity in Honeycomb?
I'd like to have a non-fullscreen Activity only taking about one third of full screen on Android 3+ (Honeycomb), so that other part would be transparent and other apps would show. So my app would actually float above other open apps.
Is it possible to have an Activity that 开发者_JS百科only takes 1/3 of the full screen?
If possible, is this against Honeycomb UI guidelines?
Answering my own question to let you know what I discovered:
If activity is created with Theme.Dialog
, then it is centered and there is no way to move it. Also area around it is dimmed and there is no access to underlying activities or desktop (i.e. activity window is modal). So there is no practical way of having a non-fullscreen window in Android that would behave as a floating window in a similar way as windows on desktop OSes do.
精彩评论