views:

62

answers:

1

I need to launch a Dialog from home screen widget, so I created an Activity with android:theme="@android:style/Theme.Dialog"

The problem is, that I would like make it look like standard dialog window ( buttons on the gray background, font and text size, paddings etc), like here:

alt text

This is how my "dialog" Activity looks like:

alt text

Is there some standard way (theme?) to make it look like standard system dialogs? Or do I have to imitate it in my own layout?

A: 

The top dialog is built using the AlertDialog.Builder, to create a simple dialog you should use that class.

BrennaSoft
I can't. This dialog is launched after pressing home screen widget button. I have to use PendingIntent to launch it.
Gaks