zoukankan      html  css  js  c++  java
  • 打开eclipse报错:发现了以元素 'd:skin' 开头的无效内容。此处不应含有子元素。

    【错误】 
    打开eclipse报错:发现了以元素 ‘d:skin’ 开头的无效内容。此处不应含有子元素。

    【具体报错信息】 
    Error parsing D:Android-sdkssystem-imagesandroid-22android-weararmeabi-v7adevices.xml cvc-complex-type.2.4.d: 发现了以元素 ‘d:skin’ 开头的无效内容。此处不应含有子元素。 Error: Error parsing D:android-sdkssystem-imagesandroid-22android-wearx86devices.xml cvc-complex-type.2.4.d: 发现了以元素 ‘d:skin’ 开头的无效内容。此处不应含有子元素。

    【解决方法】 
    方法1: 在SDK Manager里删除Android-wear相关的image 方法2: 进入sdk目录下,把..android-sdksystem-imagesandroid-22android-weararmeabi-v7adevices.xml和..android-sdksystem-imagesandroid-22android-wearx86devices.xml文件删除,再把sdk里面..android-sdk oolslib下的devices.xml拷贝到上述两个文件夹里,重启eclipse即可

    如何设置新建Android默认linearlayout

    修改 sdk ools emplatesactivitiesEmptyActivity oot eslayoutactivity_simple.xml

    <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="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/hello_world"/>
     
    </LinearLayout>
    

      

    ①  fill_parent
    设置一个视图的布局为fill_parent将强制性地使视图扩展至父元素大小。
    ② match_parent
    Android 中match_parent和fill_parent意思一样,但match_parent更贴切,于是从2.2开始两个词都可以
    用,但2.3版本后建议使用match_parent。
    ③ wrap_content
    自适应大小,强制性地使视图扩展以便显示其全部内容。以TextView和ImageView控件为例,设置为
    wrap_content将完整显示其内部的文本和图像。布局元素将根据内容更改大小。

    px、dp和sp,这些单位有什么区别?

  • 相关阅读:
    C# winform 学习(三)
    (Java实现) 均分纸牌
    (Java实现) 拦截导弹
    Delphi从内存流中判断图片格式(好多相关文章)
    Qt之QTableView显示富文本(使用了QAbstractTextDocumentLayout和QTextDocument)
    MAC和PHY的区别(网线上传递的是模拟信号)
    Qt之模型/视图(自定义按钮)(重绘QStyleOptionButton)
    QQ音乐的请求
    Log4j、Log4j 2、Logback、SFL4J、JUL、JCL的比较
    LRU Cache
  • 原文地址:https://www.cnblogs.com/as3lib/p/6108153.html
Copyright © 2011-2022 走看看