【问题标题】:How to swipe to next layout?如何滑动到下一个布局?
【发布时间】:2014-11-16 05:52:46
【问题描述】:

我搜索了超过 2 天,但找不到任何适合我的项目的内容。

我的布局中有很多按钮和文本视图。当我滑动页面时,我希望它进入下一个布局。

我在互联网上寻找视图切换器、视图翻转器和视图寻呼机,我搜索了大量示例,但其中任何一个都不适合我的项目。我怎样才能做到这一点?任何基本教程或方法?帮帮我吧……

这将是我的第一个布局http://i.imgur.com/oh9VFJu.jpg 这是我的第二个布局http://i.imgur.com/1uRUcUF.jpg

【问题讨论】:

  • 在谷歌中搜索ViewPager

标签: android layout swipe next


【解决方案1】:

您可以使用手势布局覆盖您的布局,然后将其触摸侦听器拦截到其他布局

http://www.vogella.com/tutorials/AndroidGestures/article.html

【解决方案2】:

你必须在 github 上滑动不同的布局,有一个来自 daimaja 的库,你可以试试。 https://github.com/daimajia/AndroidSwipeLayout

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-07-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-09-30
    • 2018-09-15
    相关资源
    最近更新 更多