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.
有没有办法在不使用 setSpacing 的情况下防止画廊图像重叠?
我的画廊使用自动旋转,g.onKeyDown(KeyEvent.KEYCODE_DPAD_RIGHT, null);这显然是以编程方式准确滚动它的最佳方式,但不幸的是,由于某种原因,设置间距会阻止 onKeyDown 工作。
g.onKeyDown(KeyEvent.KEYCODE_DPAD_RIGHT, null);
或者也许有一种方法可以删除间距(不设置为 0)?想法是在滚动之前将其删除,并在滚动后返回。
很高兴听到任何建议。
如果您的问题是删除画廊中重叠的图像,那么已经有了解决方案。 如何控制画廊图像的重叠?