是否有任何Android的XML文档? [英] Is there any Android XML documentation?

查看:130
本文介绍了是否有任何Android的XML文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有任何形式的XML参考?

Is there any sort of xml reference?

我发现这里面竟然是无价的,我

I found this which turned out to be invaluable for me

但我想不通,我怎么应该知道该怎么做,有 我没有发现帖子。

But I can't figure out how I was supposed to know how to do that, had I not found that post.

我知道API参考已上市的许多XML属性 类......但对于XML标记?这是哪里记载,我 使用可以建立一个形状<填充> <边角> [固体&GT ; 标签

I know that the api reference has xml attributes listed for many of the classes... but what about xml tags? Where is it documented that I could build a shape using <padding>, <corners>, <solid> tags?

我真的很想知道我在哪里可以找到这些文件。

I'd really like to know where I can find such documentation.

推荐答案

具有XML属性的类别,列出他们在自己的文档的XML属性。属性与布局开头的记录在包含布局类。

The classes which have XML attributes, list them XML attributes in their own documentation. Attributes beginning with layout are documented in the containing layout class.

借助清单文件这里记录。谷歌最近增加了很多新的文件,包括 XML资源文档。看到这个网页上绘制资源

The manifest file is documented here. Google recently added a lot of new documentation, including documentation on XML resources. See this webpage on drawable resources.

目前资源不是COM prehensive,所以 R.styleable 仍往往是最好的选择。 R.attr 是更好,如果你只是想看看所有的属性,而不是可用的属性一个特定的标记。

There resources aren't comprehensive, so R.styleable is still often the best bet. R.attr is better if you just want to see all attributes, rather than the attributes available for a particular tag.

这篇关于是否有任何Android的XML文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆