I'm sorry, I wasn't sure if it's part of the SDK, I assumed because
using the @android reference that it was some built in resource.
I got rid of the error by removing the Alert from Theme.Dialog.Alert
and is now just Theme.Dialog and it works so maybe they just got rid
of that specific theme??
In case it matters, I was using it in my themes.xml resource file and
this is the block where it is defined:
<style name="CustomAlertDialog" parent="@android:style/
Theme.Dialog.Alert">
<item
name="android:alertDialogStyle">@style/CustomAlertDialogStyle</
item>
<item name="android:buttonStyle">@style/CustomButton</item>
</style>
On Oct 20, 3:38 pm, Kostya Vasilyev <[email protected]> wrote:
> 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