要我想申请一个主题(这基本上定义 windowBackground
),这是我做了一个简单的用户名/密码对话框,然后还要到preVIEW在的Eclipse
。
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
.
我看到我的主题是沿着其他主题的主题组合框中显示,但选择它产生以下错误:
I see that my theme is displayed along other themes in the Theme combo box, but selecting it produces the following error:
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>
调试工作正常。然而所见即所得会比较AP preciable。
Debugging works fine. However WYSIWYG would be more appreciable.
关闭布局文件,在编辑器中的首先,然后重新启动您的Eclipse。
Close your layout files in the editor first and restart your Eclipse.
上一篇:在C#和WPF,可以绑定一个数组的对象属性的一个元素?数组、绑定、属性、元素
下一篇:Facebook的状态没有更新。错误403,身份验证错误,SocialAuthException在Android中错误、身份验证、状态、Facebook