zoukankan      html  css  js  c++  java
  • android布局

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


    <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.重装系统

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


    提示什么错误呀?

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


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


    第四条霸气

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


    选中项目,Eclipse工具栏Project ---> Clean
  • 相关阅读:
    深拷贝(deep clone)与浅拷贝(shallow clone)
    wait和notify
    Java实现简单RPC框架(转)
    Eclipse 搭建Struts2
    手写HashMap实践
    JVM 类加载器ClassLoader源码学习笔记
    Java 内存模型学习笔记
    Struts2 入门笔记
    struts2 拦截器
    Btrace 拦截时机
  • 原文地址:https://www.cnblogs.com/lianxu61/p/4042023.html
Copyright © 2011-2022 走看看