Я создал простое имя пользователя/пароль, к которому я хочу применить тему (она в основном определяет windowBackground
), а также хотел бы просмотреть в Eclipse
.Предварительный просмотр темы не работает в Eclipse
Я вижу, что моя тема отображается по другим темам в комбинированном окне Theme, но выбор производит следующее сообщение об ошибке: определение
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>
Debugging работает отлично. Однако WYSIWYG будет более заметным.
Возможный дубликат http://stackoverflow.com/questions/5050443/android-development-missing-theme-error-in-eclipse-ide-for-layout-xml-files – vrs