eclipse ADT图形布局

时间:2011-08-01 08:59:58

标签: android eclipse android-layout eclipse-plugin android-xml

我正在尝试查看我的android xml文件布局设计视图,但它没有显示,我用eclipse和ADT做了一些XML设计,

当我点击图形布局时,它没有显示任何内容并显示“缺少主题”,我也尝试过:右击XML文件>打开带有> android布局编辑器,但无济于事。
我的开发环境是:

Eclipse Helios Service Release 2,
Android开发工具包版本:12.0.0.v201106281929-138431,
Dalvik Debug Monitor服务版本:12.0.0.v201106281929-138431,
Traceview版本:12.0.0.v201106281929-138431。
可能是什么问题?

我的xml文件如下

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:id="@+id/RelativeLayout01"android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<ScrollView android:id="@+id/ScrollView01"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/relativeLayout1">
<RelativeLayout android:id="@+id/RelativeLayout02"
android:layout_width="wrap_content" android:layout_height="wrap_content">
<RelativeLayout android:id="@+id/RelativeLayout05"
android:layout_below="@id/RelativeLayout04" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:background="@color/brightblue">
<TextView android:id="@+id/TextView06"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:text="@string/SaveMyBackupTo" android:textColor="@color/black"
android:textStyle="bold" android:layout_marginLeft="5dip"
android:lines="2" android:layout_alignParentLeft="true"
android:singleLine="false" android:layout_toLeftOf="@+id/Button09"
android:layout_marginTop="5dip"></TextView>
<CheckBox android:id="@+id/CheckBox01" android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentRight="true" android:text="@string/EnableAutoSave"
android:textColor="@color/black" android:layout_below="@+id/Button09"></CheckBox>
<Button android:id="@+id/Button09" android:layout_alignParentRight="true" android:textSize="12dip"
android:layout_width="wrap_content" android:layout_height="30dip"
android:text="Memory Card" android:layout_marginTop="5dip"></Button>
</RelativeLayout>
</RelativeLayout>
</ScrollView>
</RelativeLayout>

我上传了截屏here 有一点我注意到我的标题栏选择选项菜单不可更改。

2 个答案:

答案 0 :(得分:3)

尝试从下拉列表中更改SDK level/version。它每次都为我解决了这个问题。

答案 1 :(得分:1)

我有同样的问题。解决方案已发布here