1

I'm not up to date with Android solutions and I wonder what is the most current way to display popup/modal/alert dialog in application?

2 years ago I used to use alert (or fragment) dialogs with custom view. I heard that nowadays this is possible by special activity.

What are the current patterns for that case?

Kamil Lelonek
  • 14,592
  • 14
  • 66
  • 90

1 Answers1

0

You can use the android:theme to make an activity look like a dialog. Add a tag similar to this to your activity in the Android Manifest.

<activity 
....
android:theme="@android:style/Theme.Holo.Light.Dialog"
..../>
Shivam Verma
  • 7,973
  • 3
  • 26
  • 34