Thursday, 15 April 2010

android - Application error: Error parsing XML: not well-formed (invalid token) style.xml -



android - Application error: Error parsing XML: not well-formed (invalid token) style.xml -

error: error parsing xml: not well-formed (invalid token)

in

styles.xml

how prepare error? below code!

thanks help!

if(build.version.sdk_int <= 10 || (build.version.sdk_int >= 14 && viewconfiguration.get(this).haspermanentmenukey())) { // menu key nowadays actionbar actionbar = getactionbar(); if(actionbar!=null) actionbar.hide(); } else { //no menu key actionbar actionbar = getactionbar(); if(actionbar!=null) actionbar.show(); } if(build.version.sdk_int <= 10 || (build.version.sdk_int >= 14 && viewconfiguration.get(this).haspermanentmenukey())) { // menu key nowadays actionbar actionbar = getactionbar(); if(actionbar!=null) actionbar.hide(); } else { //no menu key actionbar actionbar = getactionbar(); if(actionbar!=null) actionbar.show(); }

styles.xml

android:theme.holo<resources> <!-- base of operations application theme. --> <style name="apptheme" parent="android:theme.holo"> <!-- customize theme here. --> </style> </resources>

i believe problem here

<!-- base of operations application theme. --> <style name="apptheme" parent="android:theme.holo"> <!-- customize theme here. --> </style>

you can't have comments within of element that. move outside of <style> , see if works

<!-- base of operations application theme. --> <!-- customize theme here. --> <style name="apptheme" parent="android:theme.holo"> </style>

android xml eclipse

No comments:

Post a Comment