for a resource `TypedArray`, do I need to implemen...
# android
a
for a resource
TypedArray
, do I need to implement an iterator to be able to loop through it?
l
you could do something like
Copy code
for( i in 0 until typedArray.length()){
            typedArray.getResourceId(i,-1)
        }
👍 1
you can’t properly loop through an TypedArray like an normal array but you can access the resource id index