Android eclipse中的图形布局不';不能使用插入的片段

Android eclipse中的图形布局不';不能使用插入的片段,android,xml,eclipse,android-fragments,Android,Xml,Eclipse,Android Fragments,我正在使用EclipseADT,但布局文件有问题。我可以在内部xml编辑器中打开它,但是当我打开图形布局工具时,它没有显示任何内容,就好像那里没有xml文件一样 这是xml代码 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/

我正在使用EclipseADT,但布局文件有问题。我可以在内部xml编辑器中打开它,但是当我打开图形布局工具时,它没有显示任何内容,就好像那里没有xml文件一样

这是xml代码

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.hermes.view.activities.SubTaskActivity" >
<fragment
    android:id="@+id/map_fragment"
    android:layout_width="match_parent"
    android:layout_height="0dp"
    android:layout_weight="35"
    android:layout_marginBottom="15dp"
    android:name="com.hermes.view.fragments.MiniMapFragment"/>
<ListView
    android:id="@+id/list_subtaks"
    android:layout_width="match_parent"
    android:layout_height="0dp"
    android:layout_weight="60" />
</LinearLayout>

注意:我想显示图形布局工具的屏幕截图,但StackOverflow不允许它用于声誉:/

这是一个eclipse错误,还是我正在用xml文件做一些事情。我还必须说,只有在xml文件中放入一个片段时,才会发生这种情况;如果我删除片段标记,问题就会消失,但我需要查看包含片段的设计


感谢您的帮助

我将您的XML粘贴到一个布局文件中,ADT将其呈现得很好。我甚至验证了它在不同的API级别上呈现,一切都很好。真的吗?那么,对于如何找出我的ADT不起作用的地方,你有什么建议吗?