Not sure what's up with the style reference (probably was never intended to be public) but....

... the best way I've found for creating AlertDialogs that are always consistent with the platform and the parent activity's theme, is to actually subclass AlertDialog, and override onCreate, then use getLayoutInflater from there.

This produces expected results whether the parent activity's theme is light or dark, and handles Honeycomb vs. earlier platforms and manufacturer customizations.

-- Kostya

20.10.2011 23:29, Wall-E пишет:
I recently updated the SDK and now I'm getting the following error:

No resource found that matches the given name '@android:style/
Theme.Dialog.Alert'

Is that theme no longer supported in API 2.2 or is the way I'm
accessing it incorrect?  It was working just fine before I did the
update.


--
Kostya Vasilyev

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to