动态改变ImageView的位置
我在 LinearLayout(水平方向)中有 3 个 ImageView。我想根据向左或向右移动触摸来显示它们。首先,我必须在 LinearLayout 内创建 3 个图像视图,并且只有 3 个图像视图中的一个可见。在 TouchEvent 中,我想更改可见一本的位置,然后我想平滑地显示另一本,就像 iBooks 中的书籍一样。我怎样才能做到这一点?
此致,
I have 3 ImageViews in LinearLayout(Horizontal Orientation). I want to show them according to move touches to the left or right. First of all, I have to create 3 imageviews inside of the LinearLayout and only the one of the 3 imageviews can be visible. In TouchEvent I want to change position of the visible one,then I want to show smoothly the other one like books in iBooks. How can I do that?
Best Regards,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以参考下面的例子。这会对你有帮助。
此处
You can refer below example. This will be helpful to you.
here