代码如下:
r.java
public static final int test_age=0x7f050000;异常如下:
07-22 05:52:28.450: ERROR/AndroidRuntime(770): android.content.res.Resources$NotFoundException: Resource ID #0x7f050000 type #0x12 is not validage.xml 如下:<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/test_age"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<EditText android:id="@+id/age"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="age"
android:numeric="integer"
/>
</LinearLayout>
调用的代码:View view = inflater.inflate(R.id.test_age, null);走到这儿就有错,不知道为什么,求解!!!
r.java
public static final int test_age=0x7f050000;异常如下:
07-22 05:52:28.450: ERROR/AndroidRuntime(770): android.content.res.Resources$NotFoundException: Resource ID #0x7f050000 type #0x12 is not validage.xml 如下:<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/test_age"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<EditText android:id="@+id/age"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="age"
android:numeric="integer"
/>
</LinearLayout>
调用的代码:View view = inflater.inflate(R.id.test_age, null);走到这儿就有错,不知道为什么,求解!!!
r.java
public static final int test_age=0x7f050000;异常如下:
07-22 05:52:28.450: ERROR/AndroidRuntime(770): android.content.res.Resources$NotFoundException: Resource ID #0x7f050000 type #0x12 is not validage.xml 如下:<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/test_age"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<EditText android:id="@+id/age"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="age"
android:numeric="integer"
/>
</LinearLayout>
调用的代码:View view = inflater.inflate(R.id.test_age, null);很明显,你的Id不匹配导致异常NotFoundException
http://code.google.com/p/android/issues/detail?id=2726