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 元素的 Horizontal Scroll。
gallery.scrollTo(yourOffset,0);