0
我试图建立一个布局列表层绘制安卓:月食图形布局视图可以看到层列表
这是我的代码:
<?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>
这是图形中的错误布局:
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)
有人请吗?
正如我所说我想看看eclopse xml图形布局选项卡上的布局。预览。这是我犯错的地方。你能在那里看到吗? – 2012-04-22 13:09:17