I have made a simple username/password dialog to which I want to apply a theme (it basically defines windowBackground
) and would also like to preview in Eclipse
.
我看到,我的主题在“Theme combo”盒子里与其他主题一起展示,但选择这个主题会产生以下错误:
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)
Theme definition:
<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将更能理解。