`
ylzyd12345
  • 浏览: 118625 次
  • 性别: Icon_minigender_1
  • 来自: 江苏
博客专栏
713488f4-d0a9-3f35-997f-199fb0cb3563
玩懂Log,打开Andro...
浏览量:10165
社区版块
存档分类
最新评论

发现 developer.android.com 官网的错误,更新中

阅读更多

网页:http://developer.android.com/guide/topics/ui/custom-components.html

 

 

Modifying an Existing View Type

 写道
If you haven't done so already, import the NotePad sample into Eclipse (or just look at the source using the link provided). In particular look at the definition of MyEditText in the NoteEditor.java file.
 

 

 

在 NoteEditor.java 里面已经没有 MyEditText ,而是 LinedEditText

 

 

--------------------我是分隔线----------下面是另一个错误地方--------------

 

网址:http://developer.android.com/guide/topics/ui/binding.html

 

Filling the Layout with Data

 

Cursor cur = managedQuery(People.CONTENT_URI, PROJECTION, null, null);

 参数少了一个, 应该是:

Cursor cur = managedQuery(People.CONTENT_URI, PROJECTION, null, null,null);写道

 

--------------------我是分隔线----------下面是另一个错误地方--------------

网址:http://developer.android.com/guide/topics/resources/animation-resource.html

 

Property Animation

 

<objectAnimator
            android:propertyName="x"
            android:duration="500"
            android:valueTo="400"
            android:valueType="intType"/>
        <objectAnimator
            android:propertyName="y"
            android:duration="500"
            android:valueTo="300"
            android:valueType="intType"/>

 这里不可以设置  android:valueType="intType" ,否则会报错误:

 

 

Couldn't find setter/getter for property x with value type int
 

还有:

AnimatorSet set = (AnimatorSet) AnimatorInflater.loadAnimator(myContext,
    R.anim.property_animator);
set.setTarget(myObject);
set.start();

 这里应该是  R.animator.property_animator);

 

 

还有:

API Demos for examples on how to use the property animation system.

 

这里的链接也是错的。http://zoso:8080/resources/samples/ApiDemos/src/com/example/android/apis/animation/index.html

 

 

--------------------我是分隔线----------下面是另一个错误地方--------------

 

网页地址: http://developer.android.com/guide/topics/ui/drag-drop.html

 

 

Designing a Drag and Drop Operation

 

Starting a drag

第一步:

 

ClipData dragData = new ClipData(v.getTag(),ClipData.MIMETYPE_TEXT_PLAIN,item);

 

ClipData类没有MIMETYPE_TEXT_PLAIN这个属性;

而是在ClipDescription类中

所以正确的用法是:

 

ClipData dragData = new ClipData((CharSequence)v.getTag(),new String[] {ClipDescription.MIMETYPE_TEXT_PLAIN},item);

 

--------------------我是分隔线----------下面是另一个错误地方--------------

-----下面错误就有点低级了-------

 

 

Responding to drag events: an example

 

case DragEvent.ACTION_DRAG_ENTERED: {

                // Applies a green tint to the View. Return true; the return value is ignored.

                v.setColorFilter(Color.GREEN);

                // Invalidate the view to force a redraw in the new tint
                v.invalidate();

                return(true);

                break;

 看到了吗? return 之后再 break。 编译都不通过。 不知道这章的代码有没有真正的实验过。

 

1
0
分享到:
评论

相关推荐

    虹软人脸识别 – Android平台调用动态库时的常见错误解析

    最近我们发现很多用户在接入虹软ArcFace人脸识别SDK时,经常会遇到动态库加载失败的相关问题。...在安装应用时,APK中指定的ABI目录下没有发现指定的动态库,寻找apk中动态库的规则详见 https://developer

    Android入门小实验.pdf

    Eclipse Eclipse Eclipse Eclipse 中 Android Android Android Android 组件的配置 打开 eclipse.exe 选择 help—&gt; Install New Software 在 Work with:一项中填 入 https://dl-ssl.google.com/android/eclipse/ ...

    Could not resolve com.huawei.agconnect agcp-1.6.x.xxx

    按官方配置好了 developer.huawei.com/repo/ 点击同步 Sync Now 会报以下错误 Could not resolve com.huawei.agconnect 解决方法:把相应的插件用本地化安装 agconnect-crash-symbol-lib-1.6.1.300.jar agconnect...

    Developer Toolbelt Fill RAM_v1.0.2.apk

    Developer Toolbelt是用于填充 Android 内存的工具,Android 开发中有不少崩溃错误都会出现在低内存的场景,但是低内存场景的很难分析加之很难复现,使用此工具就可以快速的填充设备内存,然后制造低内存的场景。

    Android google io 2012 opensource已通过编译无错误

    http://code.google.com/p/iosched/ Download the Google I/O 2012 app Google I/O is a developer conference held each year with two days of deep technical content featuring technical sessions and ...

    appcompat V7 V4 可导入工程 可编译包

    https://developer.android.com/tools/support-library/setup.html#add-library 简单来说就是新的eclipse默认模版主题UI需要使用比较高版本api,如果需要支持低版本,需要导入appCompact库来支持,网上一般给出的...

    BrowserEclipse-2013.1.13.7z

    android4.0浏览器在eclipse中编译的方法: BrowserEclipse\docs\readme.txt 注意: 如果下载已经修过的源码,只要进行3、4、8步骤就应该可以了。 eclipse版本;adt-bundle-windows (Android Developer Tools ...

    Associate-Android-Developer-Certification:到目前为止,我收集的有关认证的所有信息和材料

    候选人应该能够分析应用程序崩溃,并发现常见的错误,例如布局错误和内存泄漏。 这包括与调试器一起工作以逐步浏览应用程序代码并验证预期的行为。 编写并执行本地JVM单元测试 测试入门 编写并

    关于Android开发中新手的10大错误

    但尽管如此,我们依然发现有些错误反复出现在刚涉足Android平台的新手开发者身上,下面是他们常犯的10大严重错误。  1. 未阅读Android文件  Android Developer Website能够给予你很大帮助。很多文件资料不仅能够...

    基础电子中的关于Android开发中新手的10大错误

    但尽管如此,我们依然发现有些错误反复出现在刚涉足Android平台的新手开发者身上,下面是他们常犯的10大严重错误。  1. 未阅读Android文件  Android Developer Website能够给予你很大帮助。很多文件资料不仅能够...

    Android开发新手必须知道的10大严重错误

    但尽管如此,我们依然发现有些错误反复出现在刚涉足Android平台的新手开发者身上,下面是他们常犯的10大严重错误。希望新手朋友们能够借鉴,避免误区。 1. 未阅读Android文件 Android Developer Website能够给予你很...

    android在eclipse中可能出现的问题

    This AndroidSDK requires Android Developer Toolkit version 10.0.0or above 之类的问题 在eclipse里安装android时可能出现的问题,出现了几次,现在我把自己出现的错误和自己的解决方法分享给大家 希望大家喜欢...

    你该知道的Gradle配置知识总结

    参考链接:https://developer.android.com/studio/build/index.html 本片文章的内容全部参考自上面的链接,其中有些内容是直接翻译的,有些内容是结合自己的经验总结的,可能有理解错误的地方,非常希望大家能指正...

    Android-Developer-Expert

    Android开发专家 阿皮 系统设计 使用设计模式 建筑模式 使用MVVM 使用干净的架构 UI-&gt;框架 演示者-&gt;接口适配器 UseCase-&gt;应用程序业务规则 实体-&gt;企业业务规则 存储库-&gt;接口适配器 数据源-&gt;框架 系统层 演示文稿(UI...

    AnimeBoya:通过使用Jsoup和其他开放源代码库,Tu2l开发的动漫流媒体和下载android应用程序

    在developer.tu2l@gmail.com上报告错误和问题 跟着我们 动漫Boya:动漫观看和下载android应用 由宅男(动漫迷)为其他宅男开发的免费动漫流媒体和动漫下载应用程序。 这个程序消除了观看喜爱的动漫所需的所有麻烦和...

    EGNOS_SDK_Core:兼容EGNOS SDK v3.0.0 Android 5

    此版本的EGNOS SDK基于官方的GSA,可在以下网址找到: ://egnos-portal.gsa.europa.eu/developer-platform/egnos-toolkits/egnos-sdk/download-egnos-sdk。已重构为Eclipse ADT-NDK项目,提供以下内容: Android 5...

    connect.appdeveloperclub.com:ADC Connect网站@ http

    App Developer Club Connect网站 App Developer Club Connect网站是ADC的聊天网络。 该站点是基于Rocket.Chat运行的,Rocket.Chat是使用Meteor构建的类似Slack的克隆。 这允许实时双向数据绑定,以便可以将消息从服...

    BakingApp:Udacity Android开发人员纳米学位项目3

    Android Developer Nanodegree Program的一部分概述您将生产一个应用程序,将其从功能状态转换为可投入生产的状态。 这将涉及查找和处理错误情况,添加可访问性功能,允许本地化,添加小部件以及添加库。为什么要这...

    Utrans - 从手机链接到个人电脑「Utrans - Transfer links from mobile to pc」-crx插件

    一个免费的应用程序,可以让您轻松地将链接从您的移动设备传输到您的Chrome网页浏览器。没有帐户需要。 Utrans是一款应用程序/扩展...对于推荐或错误报告,请发送电子邮件至rano.developer@gmail.com 支持语言:English

Global site tag (gtag.js) - Google Analytics