Tunning up Activity with dialog theme

Posted by Gaks on Stack Overflow See other posts from Stack Overflow or by Gaks
Published on 2010-06-15T13:09:48Z Indexed on 2010/06/15 13:12 UTC
Read the original article Hit count: 325

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?

© Stack Overflow or respective owner

Related posts about android

Related posts about android-sdk