Given that there are activity a and b. a is my main activity, and b will be launched from a. I want b to be a non-fullscreen-sized activity, it will show up on top of a, and of course part of a would be still visible.
In practice, I created b with theme dialog, transparent background, but when it showed up, the entire screen except b itself was black and I can't see any part of activity a unless finished b. Looked like system forced b to occupy entire screen anyway.
Then how to create a real non-full-sized activity? thx.
This was how I created my own dialog theme
<style name="CustomDialogTheme" parent="android:Theme.Dialog">
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowNoTitle">true</item>
<item name="android:windowFullscreen">false</item>
</style>