在android中禁用触摸并移动图像视图的事件

时间:2015-05-10 12:50:30

标签: android animation imageview

我正在我的Android应用中为图像实现动画。想要用户禁用手指触摸或移动图像。用户可以通过单击下一个/上一个按钮导航到下一个图像。

请帮助我如何以编程方式手动禁用触摸或移动图像。

提前致谢。

编辑:

animation = new TranslateAnimation(0.0f, -(vWidth-aWidth),0.0f, 0.0f);
                                        animation.setDuration(7000);
                                    animation.setRepeatCount(1);
                                    animation.setRepeatMode(2);
                                    animation.setFillAfter(true);

fullImageView.startAnimation(动画);

这里,vWidth是aWidth的两倍。

这将在屏幕上显示动画图像。用户可以看到此动画但不应拖动图像以查看全宽。

请检查并帮助我。

0 个答案:

没有答案
相关问题