开发者

how to overlap a horizontal gallery with a vertical gallery

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-scr开发者_运维问答olling 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!


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜