我下了Android Hello-GridView tutorial,并想用图像的动态列表,从我RES /绘制的文件夹,而不是硬编码阵列的建议:获取图像的动态列表
// references to our images
private Integer[] mThumbIds = {
R.drawable.sample_2, R.drawable.sample_3,
R.drawable.sample_4, R.drawable.sample_5,
R.drawable.sample_6, R.drawable.sample_7,
R.drawable.sample_0, R.drawable.sample_1
};
我怎样才能循环和加载这些图像动态?