假设我有多个图片在drawable文件夹中(例如8张图片)。 我想使用从左到右翻转的效果将所有这些图像一个接一个地显示在imageView中,并反复显示(ex-img[0],img[1],......img[8],img[0],img[1],..........
)。 我该怎么做呢?
private void AnimateandSlideShow() {
image1 = (ImageView)findViewById(R.id.imageView1);
image1.setImageResource(img[currentimageindex1%img.length]);
currentimageindex1++;
Animation rotateimage = AnimationUtils.loadAnimation(this, R.anim.custom_anim);
image1.startAnimation(rotateimage);
}