[英]android: eclipse graphic layout view can see layer-list
i'm trying to build a layout-list for layer drawable 我正在尝试为可绘制图层构建布局列表
this is my code: 这是我的代码:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<item
android:drawable="@drawable/sign"
android:id="@+id/sign"/>
</layer-list>
this is the error in the graphic layout: 这是图形布局中的错误:
com.android.layoutlib.bridge.MockView cannot be cast to android.view.ViewGroup
Exception details are logged in Window > Show View > Error Log
The following classes could not be found:
- item (Fix Build Path, Edit XML)
- layer-list (Fix Build Path, Edit XML)
someone please ? 有人吗?
I pasted this in a new file in my current project, saved and rebuilt without a glitch. 我将其粘贴到当前项目中的新文件中,进行了保存和重建。 Have you cleaned your project and tried rebuilding? 您是否已清理项目并尝试重建?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.