में विफल रहता है मैंने एक साधारण उपयोगकर्ता नाम/पासवर्ड संवाद किया है जिसमें मैं एक विषय लागू करना चाहता हूं (यह मूल रूप से windowBackground
परिभाषित करता है) और Eclipse
में पूर्वावलोकन करना भी चाहेंगे।थीम पूर्वावलोकन ग्रहण
मैं देख रहा हूँ कि मेरे विषय थीम कॉम्बो बॉक्स में अन्य विषयों के साथ प्रदर्शित किया जाता है, लेकिन यह का चयन निम्न त्रुटि पैदा करता है:
Missing styles. Is the correct theme chosen for this layout?
Use the Theme combo box above the layout to choose a different layout, or fix the theme style references.
Failed to find style 'textViewStyle' in current theme
android.content.res.Resources$NotFoundException
Couldn't find theme resource attr/textAppearanceLarge for the current theme
Exception details are logged in Window > Show View > Error Log
The following classes could not be found:
- TextView (Change to android.widget.TextView, Fix Build Path, Edit XML)
विषय परिभाषा:
<style name="my_theme">
<item name="android:windowBackground">@drawable/form_header</item>
<!-- <item name="android:padding">0dp</item>-->
<item name="android:windowNoTitle">true</item>
</style>
डिबगिंग ठीक काम करता है। हालांकि WYSIWYG अधिक सराहनीय होगा।
http://stackoverflow.com/questions/5050443/android-development-missing-theme-error-in-eclipse-ide-for-layout-xml-files – vrs