码迷,mamicode.com
首页 > 移动开发 > 详细

android布局

时间:2014-11-12 11:43:52      阅读:163      评论:0      收藏:0      [点我收藏+]

标签:android   style   blog   http   io   color   ar   sp   on   

============问题描述============


<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" >

    <TextView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="@string/skip" />
    <EditText 
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:id="@+id/skipTest"/>
    <Button 
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/buttonSkip"
        android:id="@+id/buttonSkip"/>

</LinearLayout>
问题是: <EditText 
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:id="@+id/skipTest"/>这段编译不通过,不知道为何??

============解决方案1============


不应该吧,这xml没问题啊

============解决方案2============


你把贴到其他XML里面试试,这个应该没有问题。

============解决方案3============


我来总结下:
1.xml顶端有没有加  <?xml version="1.0" encoding="utf-8"?>
2.选中项目,Eclipse工具栏Project ---> Clean
3.检查有没有重复的Id等等
4.重装系统
bubuko.com,布布扣

============解决方案4============


提示什么错误呀?

============解决方案5============


引用 3 楼 gao_chun 的回复:
我来总结下:
1.xml顶端有没有加  <?xml version="1.0" encoding="utf-8"?>
2.选中项目,Eclipse工具栏Project ---> Clean
3.检查有没有重复的Id等等
4.重装系统
bubuko.com,布布扣


第四条霸气

============解决方案6============


选中项目,Eclipse工具栏Project ---> Clean

android布局

标签:android   style   blog   http   io   color   ar   sp   on   

原文地址:http://www.cnblogs.com/hugangyan86/p/4091709.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!