i have an activity which is to be converted to an popup. so i used

SetTheme(Android.Resource.Style.ThemeDialog);

to make it look like an popup. but the problem is it looks like a popup but previous activity is not visible on back. i get a black background. what i am doing wrong. little help will be great.

有帮助吗?

解决方案

i couldn't fix it using SetTheme(Android.Resource.Style.ThemeDialog);

so i changed the activity to dialog fragment and now it works fine.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top