<?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="wrap_content">
<ImageView
android:id="@+id/imageNew"
android:layout_width="50dip"
android:layout_height="50dip"
android:src="@drawable/icon"
android:scaleType="centerCrop"/>
</LinearLayout>
这是我的新布局文件,它不会被eclipse检测到,也不会被R文件检测到。我无法创建任何新的布局文件,或者我做的都是错的。我所有的旧版面都可以看到。Android xml布局文件没有被添加到R.java
编辑:
另外,我创造了一个布局以前我有一个新的ID修改,但是这也不会被检测到新的ID。
做一个干净的项目可能会重启eclipse。 –
哈哈,一个简单的解决方案。发布作为答案,我会检查它:) – Adam
http://stackoverflow.com/questions/9170827/why-is-my-custom-layout-file-not-recognized 而不是android.R只是使用R ... – Exile