Swiping images (not layouts) with viewpager

后端 未结 2 1130
自闭症患者
自闭症患者 2021-01-01 05:30

What my code does:

Here\'s my code which for viewpager that swipes between xml layouts (named left.xml, right.xml and center.xml).

W

2条回答
  •  隐瞒了意图╮
    2021-01-01 06:05

    I think one option would be to insert each image into its own layout with an ImageView and then inflate the layout that the image is in rather than the image itself.

提交回复
热议问题