首页 新闻 会员 周边

android中布局文件不能在R.java中自动生成

0
悬赏园豆:20 [已解决问题] 解决于 2011-08-09 08:31

这是我的xml布局文件

 

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation
="vertical"
android:layout_width
="fill_parent"
android:layout_height
="fill_parent"
>
<TextView
android:layout_width="fill_parent"
android:layout_height
="wrap_content"
android:text
="@string/hello"
/>
<Button android:id="@+id/first"
android:layout_height
="wrap_content"
android:layout_width
="wrap_content"
android:text
="@string/first"></Button>
</LinearLayout>

 

冷酷男孩的主页 冷酷男孩 | 初学一级 | 园豆:200
提问于:2011-02-13 21:18
< >
分享
最佳答案
0

<TextView 没加ID

收获园豆:20
越位线上跳探戈 | 菜鸟二级 |园豆:225 | 2011-02-14 11:17
不是,布局文件无法在R.java中自动生成。是大小写问题,我已经找到问题所在啦,谢谢了
冷酷男孩 | 园豆:200 (初学一级) | 2011-02-14 11:25
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册