android eclipse can't see layer-list in Graphical Layout

7331

New Member
i'm trying to build a layer-list of 2 images and to see it in the Graphical layout in eclipse in order to see that it came correctly...for some reason i get an errorthis is my xml file:\[code\]<?xml version="1.0" encoding="utf-8"?><layer-list xmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="50dp"android:layout_height="50dp"><item android:drawable="@drawable/picuser" android:layout_width="50dp"android:layout_height="50dp"/><item android:drawable="@drawable/ic_launcher" android:layout_width="50dp"android:layout_height="50dp"/></layer-list>\[/code\]this is my error:\[code\]NOTE: This project contains Java compilation errors, which can cause rendering failures for custom views. Fix compilation problems first.com.android.layoutlib.bridge.MockView cannot be cast to android.view.ViewGroupException details are logged in Window > Show View > Error LogThe following classes could not be found:- item (Fix Build Path, Edit XML)- layer-list (Fix Build Path, Edit XML)\[/code\]
 
Back
Top