[英]CAndroid animation elastic effect on image dragged left or right
I am new to android, 我是Android新手,
I have six images in a fragment which is in a scrollview, one over the other,like a stack. 我在一个片段中有六个图像,这些图像处于滚动视图中,一个在另一个上,就像一个堆栈。
Objective : 目的:
I will be able to handle, putting item into the basket etc, only thing which I am curious is drag elastic effect , and I am sure there must be some way to achieve it. 我将能够处理,将物品放进篮子等,只有我好奇的是阻力弹性效应 ,而且我确信必须有某种方法来实现。
I will really appreciate if someone point/show me a way to achieve it. 如果有人指出/向我展示实现这一目标的方法,我将不胜感激。
This is what I am trying to achieve. 这就是我要实现的目标。 Pulling/dragging image right, adds item to basket 向右拖动/拖动图像,将项目添加到购物篮
By pulling/dragging image left removes item from the basket. 通过拖拉/拖曳图像,可从篮子中取出物品。
Thanks, Shashank 谢谢,Shashank
Its already been asked before here, it might help someone. 在此之前已经有人问过它,可能会对某人有所帮助。
Android: How to handle right to left swipe gestures Android:如何处理从右向左的滑动手势
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.