usr*_*ΛΩΝ 28 android android-theme
我已经创建了一个简单的用户名/密码对话框,我想要应用一个主题(它基本上定义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)
Run Code Online (Sandbox Code Playgroud)
主题定义:
<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>
Run Code Online (Sandbox Code Playgroud)
调试工作正常.然而,所见即所得将更加明显.
小智 24
我也遇到了这个问题.我通过改变主题来解决它.这样做的步骤
| 归档时间: |
|
| 查看次数: |
35376 次 |
| 最近记录: |