关于XML布局标签属性Android SDK中的信息 [英] Android SDK info about XML Layout tag attributes

查看:117
本文介绍了关于XML布局标签属性Android SDK中的信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我学习了Android SKD文件,我想知道在哪里可以找到被定义应用程序的界面的布局时,使用有关XML标签的属性信息,如的android:名称的android:ID 类:的片段标记等属性。我不能参考文档,其中仅列出Java类的文档中找到他们。 。是否有关于XML标签和属性的任何具体文件,举办类似于Java参考文档?

I'm studying the Android SKD Documentation and I was wondering where I can find information about the XML tags' attributes that are used when defining the layout of the interface of your application, like the android:name, android:id, class: attributes of the fragment tag etc.. I can not find them in the Reference documentation, which lists only the documentation of Java classes.. Is there any specific documentation about XML tags and attributes, organized like the Java Reference docs?

推荐答案

简短的回答是:它是在那里。具体到一个类的布局标签通常是在子类中的的LayoutParams 的例如的 RelativeLayout.LayoutParams 。但是,由于我们使用的大多数类是从一些(玄孙grand-)父类派生,我们爬上结构,找到,直到我们找到我们想要的标签。最简单的方法是找到详细信息,请感兴趣的是寻找它的属性。

The short answer is that: it is in there. The layout tags specific to a class are typically in a subclass LayoutParams for example RelativeLayout.LayoutParams. However since most classes we use are derived from some (great-great-grand-)parent class, we climb up the hierarchy to find until we find the tag we want. The simplest way is to find details the attribute your are interested in is to search for it.

如果你发现一个主列表,让我知道。直到后来我靠像Eclipse集成开发环境与快速参考自动完成功能。

If you ever find a master list, let me know. Until then I rely on IDEs like Eclipse with auto-complete features for a quick reference.

这篇关于关于XML布局标签属性Android SDK中的信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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