eclipse ADT 图形布局
我正在尝试查看我的 android xml 文件布局设计视图,但它没有显示,我使用 eclipse 和 ADT 在 XML 中进行了一些设计,
当我单击图形布局时,它不显示任何内容并显示“缺少主题”,我也尝试过:右键单击 XML 文件>openwith>android 布局编辑器但无济于事。
我的开发环境是:
Eclipse Helios Service Release 2,
Android开发工具包版本:12.0.0.v201106281929-138431,
Dalvik 调试监视器服务版本: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>
我在此处上传了屏幕截图。
我注意到一件事是我的标题栏选择选项菜单不可更改。
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,
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:
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` ?
My xml file as below
<?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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试从下拉列表中更改
SDK 级别/版本
。它每次都为我解决这个问题。Try changing the
SDK level/version
from the drop-down. it solved this issue for me everytime.我有同样的问题。解决方案发布于此处。
I had the same issue. solution posted here.