<TextView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="@string/hello" />
引用了string的hello
    <string name="hello">Hello ABC</string>
可是我页面上仍只显示:Hello World
这是为什么呢?

解决方案 »

  1.   

    看看gen目录下的R文件中有没有自动生成hello这个字符串name对应的id。
    如果没有,就clean一下工程
      

  2.   

    同楼上
    另外,再检查下res目录下面有几个value开头的文件夹,如果有多个的话,把每个文件夹里面的strings.xml值都改掉
      

  3.   

    实在不行关了eclipse重启一下。。要不你把所有的代码发上来,从来没遇到过啊。
    还有会不会运行错了程序了?
      

  4.   

    Project -> Clean ,然后再运行。