AttributeSet 的意义

AttributeSet 的意义[color=brown]/***ReturnanAttributeSetinterfaceforusewiththegivenXmlPullParser.*IfthegivenparseritselfimplementsAttributeSet,thatimplementation*issimplyre…

[color=brown] /**

* Return an AttributeSet interface for use with the given XmlPullParser.

* If the given parser itself implements AttributeSet, that implementation

* is simply returned. Otherwise a wrapper class is

* instantiated on top of the XmlPullParser, as a proxy for retrieving its

* attributes, and returned to you.

*

* @param parser The existing parser for which you would like an

* AttributeSet.

*

* @return An AttributeSet you can use to retrieve the

* attribute values at each of the tags as the parser moves

* through its XML document.

*

* @see AttributeSet

*/[/color]

public static AttributeSet asAttributeSet(XmlPullParser parser) {

return (parser instanceof AttributeSet)

? (AttributeSet) parser

: new XmlPullAttributes(parser);

}

在google android源码 Xml.java 文件中

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/226932.html原文链接:https://javaforall.net

赞 (0)
全栈程序员-站长的头像全栈程序员-站长

相关推荐

  • MYSQL explain执行计划解读

    MYSQL explain执行计划解读

    2022年2月11日
  • Python获取时间戳_Python中文当前时间

    Python获取时间戳_Python中文当前时间原博文2019-01-0410:42−#!/usr/bin/python#-*-coding:UTF-8-*-importtime;#引入time模块ticks=time.time()print(“当前时间戳为:”,ticks)输出:当前时间戳为:1459994552.51&nbsp…相关推荐2019-12-0610:29−1.获取当前时间的时间…

    2022年10月2日
  • epoll使用具体解释(精髓)

    epoll使用具体解释(精髓)

    2021年11月16日
  • doc2vec和word2vec(zigbee简介及应用)

    作者:GidiShperber在本文中,你将学习什么是doc2vec,它是如何构建的,它与word2vec有什么关系,你能用它做什么,并且没有复杂的数学公式。介绍文本文档的量化表示在机器学习中是一项具有挑战性的任务。很多应用都需要将文档量化处理,例如:文档检索,web搜索,垃圾邮件过滤,主题建模等。但是,要做到这一点好的方法不多。很多方法使用众所周知但简单化的词袋方法(BOW)…

    2022年4月18日
  • 如何彻底的卸载anaconda(包括配置文件)

    如何彻底的卸载anaconda(包括配置文件)如果你想测地卸载anaconda,请看SolutionB。[官方参考链接]。1.SolutionA通常卸载软件,直接运行uninstall就可以了,对于anaconda也一样,可以直接运行安装目录下的Uninstall-Anaconda3.exe即可,但是这样卸载并没有完全卸载。如果需要完全卸载请参考SolutionB2.SolutionB通过B方式卸载,请确保还没有通…

    2022年6月18日
  • HTML导航栏制作

    HTML导航栏制作首先建一个大盒子,名为nav用于装导航栏里面的部分。代码如下:<divclass=”nav”></div>.nav{width:100%;height:50px;background-color:#f7f7b6;}目录logo(即图中的汤姆!)Li文字搜索栏loglogo(即图中的汤姆!)<divclass=”logo”><imgsrc=”…

    2022年5月28日

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号