Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在通过扩展类来创建图像的封面流。Gallery
Gallery
图库视图正在正确显示,但图像从右到左滚动的速度非常快,反之亦然。
有什么方法可以调节图像在水平方向上从右到左的移动速度,反之亦然?
尝试更改Gallery对象的动画持续时间。使用 API setAnimationDuration。
setAnimationDuration
增加动画的持续时间应该会降低您在滚动图像时的速度。
我不知道默认的动画持续时间,因此您可能必须通过试错法来弄清楚。:)(如果您对此进行实验,您可以在这里发布您的发现吗?)