Android XML <style> closing tag -
i learning develop android applications using eclipse. application android 3.0 , higher only. using google tutorials, found here , have stumbled little on tutorial helps style action bar.
if follow above link, see google suggests style action bar creating xml file called "/res/values/themes.xml , coding this:
<?xml version="1.0" encoding="utf-8"?> <resources> <!-- theme applied application or activity --> <style name="customactionbartheme" parent="@style/theme.holo.light.darkactionbar"> <item name="android:actionbarstyle">@style/myactionbar</item> <style> <!-- actionbar styles --> <style name="myactionbar" parent="@style/widget.holo.light.actionbar.solid.inverse"> <item name="android:background">@drawable/actionbar_background</item> <style> </resources>
i noticed lack of closing </style>
tags. , did eclipse (this won't compile) can tell me why <style>
tags not closed?
i tried closing tags myself, seemed fix trouble, though 2 other errors appeared: error retrieving parent item: no resource found matches given name '@style/widget.holo.light.actionbar.solid.inverse'.
and
error: error retrieving parent item: no resource found matches given name '@style/theme.holo.light.darkactionbar'.
how include appropriate resources clear these errors?
that page of android documentation appears wrong, , must assume it's mistake.
if @ other pages, example: styles , themes, closing tag denoted </style>
. platform themes correctly formatted.
edit: appears documentation has since been fixed.
Comments
Post a Comment