...10.4.7 类型数组(Typed-Array)资源 《Android开发权威指南(第2版)》第10章Android的资源详解(一),本章介绍Android支持的大部分资源,这些资源中比较复杂的...
基于4个网页-相关网页
隐式类型数组 Implicitly Typed Array
数组类型 [计] array type ; Arr ; array char table ; AtomicIntegerArray, AtomicLongArray, AtomicReferenceArray
参数类型数组 Type parameterTypes
类型化数组 Typed Array
需要数组类型 Array type required
数组类型定义 [计] array type definition
数组类型和赋值 Array types and assignments
数组类型标识符 [计] array type identifier
压缩数组类型 [计] packed array type
但是这段代码不能工作——不能实例化用类型参数表示的类型数组。
But this code does not work — you cannot instantiate an array of a type represented by a type parameter.
如清单4所示,为单个自定义复杂类型数组生成的XML描述很长。
As shown in Listing 4, long XML descriptions are generated for a simple array of a self-defined complex type.
此外,您可以使用该操作来迭代数组(包括基本类型数组)中的元素。
In addition, you can use this action to iterate through the elements of an array, including arrays of primitives.
And again, this points out something I wanted to me-- I mentioned last time, list can be heterogeneous, in the sense that the elements can be multiple different types.
这儿又指出了一点我想要告诉大家的,我上节课也提到了,就是数组是多相的,也就是说元素可以是多种类型的。
And we're going to start with one that you many of you, have already bumped into perhaps by accident, which are lists.
曾经遇到过的,可能是偶然遇到的类型来开始,就是数组,数组和字符串类型。
Right, and just to get a sense of this, let's look at a simple little example, so on your hand-out, you'll see I've got a little piece of code that says assuming I've got one of these points, I want to do things with it, for example I might want to add them together.
这些数组中的一个,你怎么能够知道,它是哪种类型的呢?,你怎么知道它是以笛卡尔坐标,表示的还是以极坐标,形式表示的呢?,你没有可以用来区分的东西,你没有说明这种信息,聚集实际上的意义。
应用推荐