This screen was captured from Gmail app for android. The popup looks pretty cool with images and all. Any ideas on how this was made?
Asked
Active
Viewed 103 times
0
-
2That's probably a normal activity with a transparent, black background. They probably set `Theme.Translucent` in the manifest for the activity and added the transparent background via `android:background` to the root element of the activity. – Dec 11 '11 at 11:47
-
@alextsc Normal activity with webview? – Binoy Babu Dec 11 '11 at 11:48
-
1Can't tell, maybe. Maybe just a button and a bunch of ImageViews. But both could work. – Dec 11 '11 at 11:48
-
@alextsc I'll try both thanks. Btw what do you use for displaying credits in your app? – Binoy Babu Dec 11 '11 at 11:49
-
I don't have a published app in the market, so I can't answer that. :) – Dec 11 '11 at 11:50
1 Answers
2
This is done with a custom dialog, it is actually quite easy to achieve. Just create a layout for a normal Activity and pass it to the Dialog builder.
For more information, check http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog out

Force
- 6,312
- 7
- 54
- 85
-
Oh and I just saw that in your picture there is actually no border, so it is probably *not* done with a custom dialog. However, I think it is more practical to use it. – Force Dec 11 '11 at 11:52
-
screenshot from http://developer.android.com doesn't look like the one from gmail btw.. – Binoy Babu Dec 11 '11 at 11:54
-
@BinoyBabu: Well, if you don't set the title like they've done in the example, you can get very close to the screenshot above. – Force Dec 11 '11 at 12:27
-
-
You could apply some of these values (eg. background color): http://stackoverflow.com/questions/2176922/how-to-create-transparent-activity-in-android/2700683#2700683 – Force Dec 11 '11 at 12:58