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
  • 相关阅读:
    Insert Sort Singly List
    Binary Search Tree Iterator
    React的组件化
    React的虚拟DOM
    如何依靠代码提高网络性能
    读高性能JavaScript编程 第三章
    读高性能JavaScript编程 第二章 让我知道了代码为什么要这样写
    读高性能JavaScript编程 第一章
    固本培元之一:栈和堆
    学习笔记
  • 原文地址:https://www.cnblogs.com/lianxu61/p/4042023.html
Copyright © 2011-2022 走看看