I have an Activity A, and there is a button B in the view. If somebody presses B then I want a pop-up which can take some part of screen making the A invisible in that area but rest of A is visible but not active. How can I achieve this?
+2
A:
If you want to do this using an Activity instead of a Dialog, you can do this by setting the activity's theme to android:theme="@android:style/Theme.Dialog"
in the manifest - this will make the activity appear like a dialog (floating on top of whatever was underneath it).
oli
2010-07-28 09:38:15
somehow it didn't work for me :(. I tried to set up the theme using setTheme(android.R.style.Theme_Dialog).
bhups
2010-07-28 15:04:29
Have you tried setting the theme to the activity in the manifest instead?
oli
2010-07-28 15:40:24