Make Android Activity looks like dialog

Posted by Matroska on Stack Overflow See other posts from Stack Overflow or by Matroska
Published on 2010-03-06T23:28:08Z Indexed on 2010/06/17 23:13 UTC
Read the original article Hit count: 674

Filed under:
|
|

Hi,

I am trying to open a dialog on widget click. I have solved the problem skinning the activity started on click with android:theme="@android:style/Theme.Dialog". Unfortunately I cannot reach the same look of a dialog. This is the outcome:

http://i50.tinypic.com/n15lcy.png

while I would like to reach this result (except for the button, of course):

h ttp://i48.tinypic.com/2ithqpc.png

(the widget dialog you can see keeping the screen pushed)

As you can see there are some differences: the color of the list items, the color of the text and the list item separator. Is there a predefined theme/style to obtain the same look of a standard dialog? If not, what are the steps to follow to reach that result? I have seen that the widget provided by FoxyRing has the behaviour I would like to have.

Thanks

© Stack Overflow or respective owner

Related posts about android

Related posts about gui