[英]Don't changes layout in android application
我更改了Eclipse的布局背景并添加了新视图(按钮)。
我启动了我的应用程序,但是在模拟器中什么都没有改变!
我能做什么? 也许这是一个Eclipse错误?
我从互联网下载了这个项目。 最初它具有黑色背景。 我添加了新的视图-一切正常。 但是当我开始改变背景之后,出现了这个错误
XML:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@android:color/white"
android:orientation="vertical" >
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button" />
<EditText
android:id="@+id/txtInd"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10" >
<requestFocus />
</EditText>
<ListView
android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
</ListView>
</LinearLayout>
每当您要再次测试应用程序时,请勿在模拟器中单击您的应用程序图标。 但是,选择您的项目,然后单击
如果这不起作用。 尝试从以下位置清理项目: Project
>>> Clean
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.