eclipse ADT 图形布局

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6896177/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 16:45:12  来源:igfitidea点击:

eclipse ADT graphical Layout

androideclipseandroid-layouteclipse-pluginandroid-xml

提问by aftab

I am trying to view my android xml file layout design-view but it is not displaying,I did some designing in XML with eclipse and ADT,

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

When I click on Graphical Layout it does not display anything and says 'Missing Theme',I also tried : Right click XML file>openwith>android layout editor but to no avail.
My development environment is:

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

Eclipse Helios Service Release 2,
Android Development Toolkit Version: 12.0.0.v201106281929-138431,
Dalvik Debug Monitor Service Version: 12.0.0.v201106281929-138431,
Traceview Version:12.0.0.v201106281929-138431.
What can be the problem` ?

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

My xml file as below

我的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>

I uploaded a screenshot here.
one thing i noted that my title-bar selection option menu is not change-able.

在这里上传了截图。
我注意到我的标题栏选择选项菜单不可更改的一件事。

采纳答案by kakopappa

I had the same issue. solution posted here.

我遇到过同样的问题。解决方案张贴在这里

回答by Aman Alam

Try changing the SDK level/versionfrom the drop-down. it solved this issue for me everytime.

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