什么是用于ids.xml? [英] what is ids.xml used for?
本文介绍了什么是用于ids.xml?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
只是一个快速的问题,什么是用来开发Android应用程序时的ids.xml? 我看到其中包含了Android资源网页的例子:
Just a quick question, what is the ids.xml used for when developing an Android app? I saw an example on the android resources webpage which contained:
<resources>
<item type="id" name="snack" />
</resources>
请问这是做什么用的?
What would this be used for?
推荐答案
id.xml一般是用来声明您使用在布局视图中的id的。
id.xml is generally used to declare the id's that you use for the views in the layouts.
您可以使用类似
<TextView
android:id="@id/snack"
>
为您给出的xml。
for your given xml.
这篇关于什么是用于ids.xml?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文