【发布时间】:2013-12-06 06:39:20
【问题描述】:
更新
我知道我可以使用数组或列表,但我想使用一种有效的方法而不使用数组或集合,感谢大家 特别感谢 mussharapp
嗨,我想使用 Imageview 的 id 访问它 例如,我有一个使用循环创建的图像视图,例如
for(int i=1;i<10;i++) {
Imageview mv=new ImageView(this);
mv.setid(i);
// and so on for image properties
}
现在我想获取我在循环中创建的所有图像如何获取这些图像有什么方法可以使用 id 或其他东西???
我面临同样的问题
【问题讨论】:
-
您是否将这些图像视图添加到任何布局或其他东西中???
-
用
List<ImageView>怎么样? -
我正在使用'ImageView imageView = (ImageView) inflate.inflate(R.layout.ani_image_view, null);'创建图像视图
-
每次imageview drawlabe在一段时间后改变现在我想访问旧图像如何获取
-
@NoamanAkram 请更新您的问题并清楚详细地描述您在做什么以及您想要什么..
标签: android android-layout view imageview android-imageview