简体   繁体   English

说到Android资源,什么是包包?

[英]When it comes to Android resources, what is a bag?

I'm digging down into some of the low level native Android code. 我正在深入研究一些底层Android本机代码。 I'm trying to learn how the framework ultimately fills in an attribute set. 我正在尝试学习框架最终如何填充属性集。 I'm digging around here and I keep running into "bag". 我在这里东西,然后一直碰到“袋子”。 I don't have a good mental picture of what this is.. 我对这是什么没有足够的心理了解。

  1. We have bag_entry s 我们有bag_entry

  2. We can lock/unlock it 我们可以锁定/解锁

  3. Our style attribute finder is of type BagAttributeFinder 我们的样式属性查找器是BagAttributeFinder类型的

Is this an acronym for something? 这是什么的缩写吗? I feel like I'm missing something obvious here that should make my mental abstraction just click. 我觉得这里缺少明显的东西,应该使我的心理抽象只需单击即可。

What you are talking about is a type of Data Structure called the bag. 您正在谈论的是一种称为袋的数据结构。

"A bag is a collection where removing items is not supported—its purpose is to provide clients with the ability to collect items and then to iterate through the collected items. Stats.java is a bag client that reads a sequence of real numbers from standard input and prints out their mean and standard deviation." “袋子是不支持删除物品的集合,目的是使客户能够收集物品,然后遍历所收集的物品。Stats.java是一个袋子客户端,它从标准中读取一系列实数输入并打印出均值和标准差。”

Source: http://algs4.cs.princeton.edu/13stacks/ 资料来源: http : //algs4.cs.princeton.edu/13stacks/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM