【问题标题】:Android - swipe between pages in API 8Android - 在 API 8 中的页面之间滑动
【发布时间】:2013-12-09 07:10:08
【问题描述】:

我尝试开发类似this 的android 应用程序,我找到了这段代码:

http://developer.android.com/training/implementing-navigation/lateral.html#horizontal-paging

但正如您所知,因为 fragment,它适用于 api 11 及更高版本,我如何在 api 8 中做同样的事情?

【问题讨论】:

标签: android swipe-gesture


【解决方案1】:

检查Setting up a project with ActionBar, NavigationTabs and swipe navigation并在下载ActionBarSherlock的库后按照其中给出的步骤进行操作

【讨论】:

    【解决方案2】:

    您必须使用 Android Support 库或 Sherlock 库。通过任何一种方式,您都可以在 Android 的旧 API 上使用 ViewPager 实现 Fragment 和 Swiping。

    查看以下链接: This is using Sherlock Library

    【讨论】:

      猜你喜欢
      • 2012-03-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-07-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多