如何将水平画廊与垂直画廊重叠
我是一个 android 新手,我正在寻找一个解决方案,如何将水平滚动图像库与垂直滚动图像库重叠。这意味着垂直滚动图库的一张透明图像应与水平滚动图库的一张图像重叠(如十字)。
此外,应该可以垂直或水平滚动,以便垂直滚动图库的图像或水平滚动图库的图像将会改变。有办法吗?
多谢!
I'm an android-newbie and I'm looking for a solution, how to overlap a horizontal-scrolling image-gallery with a vertical-scrolling image-gallery. that means one transparent image of the vertical-scrolling gallery should overlap one image of the horizontal-scrolling gallery (like a cross).
furthermore it should be possible to scroll either vertical or horizontal so that the image of the vertical-scrolling gallery or the image of the horizontal-scrolling gallery will change. is there an way ?
thanks a lot!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只是一个想法,但是像这样的 3x3 表格布局怎么样:
--VG--
HGIVHG
--VG--
其中 VG 表示垂直画廊,HG 是水平画廊,IV 是图像视图,并且 -- 只是一个空框架布局。
现在,您有两个图像列表,垂直列表和水平列表。您记住图像列表状态并始终识别数据模型中的焦点图像。两个聚焦的图像在居中的图像视图中合成,而其余图像分布在相邻的图库中。这需要一点努力,但应该有效。
Just an idea, but what about a 3x3 table layout like so:
--VG--
HGIVHG
--VG--
where VG means vertical gallery, HG is horizontal gallery, IV is an image view and -- is just an empty frame layout.
Now, you have two image lists, the vertical and the horizontal list. You remember the image list states and always recognize the focused images in your data model. The two focused images are composed in the centered image view, whereas the remaining images are distributed in the adjacent galleries. It's a bit of effort but should work.