开发者

Horizontal Scroll View and a gap with overlapping content

开发者 https://www.devze.com 2023-04-08 20:38 出处:网络
After some issues, I now have a working horizontal scroller, it uses a linear layout, with various image views inside, the problem is, I want some of the image views to overlap each other, I achieve t

After some issues, I now have a working horizontal scroller, it uses a linear layout, with various image views inside, the problem is, I want some of the image views to overlap each other, I achieve this by using

开发者_StackOverflow中文版
myImageView.setX(-100);

The problem is, there is a big blank space at the end of the scroller, as if all of the image views widths have been taken into account but as they have been moved back a bit, an empty space has been left.

Is there a way to use a relative layout with a scroller? Or a way to manually decrease the width of the scroller so my overlapping content fits?

0

精彩评论

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

关注公众号