Android的刷卡查看与标签不使用V4支持库 [英] Android Swipe View with Tabs Without Using the V4 support library

查看:105
本文介绍了Android的刷卡查看与标签不使用V4支持库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了Android文档中描述的标签为刷卡视图前几次。事实上,通过Eclipse项目向导pretty的步进多套您使用一个ViewPager基本的用户界面。

I've created a swipe view with tabs as described in the android documentation several times before. In fact, stepping through the Eclipse project wizard pretty much sets you up with the basic ui using a ViewPager.

我的问题是这样的:

我要建将只支持早的Andr​​oid 4.0(API级别14)中的应用。所以,我正在考虑完全抛弃支持包。不过,我似乎无法找到轻扫查看与标签不使用ViewPager(这仅适用于支持包)的一个例子。

The application I'm building will only be supporting as far back as Android 4.0 (API level 14). So, I was considering ditching the support package altogether. However, I couldn't seem to find an example of a Swipe View with Tabs not using the ViewPager (which is only available in the support package).

有一个API级14安培;>等同于ViewPager,可能有人给我如何实现刷卡查看带有标签的接口工作的例子没有使用支持库

Is there an api level 14&> equivalent to the ViewPager and could someone give me a working example of how to implement a Swipe View with Tabs interface without using the support library.

否则,可能有人给出一个很好的理由,为什么我不应该甚至不屑,使用支持包,只是很高兴。

Otherwise, could someone give a good argument as to why I shouldn't even bother, use the support package and just be happy.

编辑:我正在寻找的是关于支持库的具体功能,如ViewPager一个权威的答案。被这些功能将最终被合并到核心API?还是我们继续拥有包括支持包,这些类型的功能?请具体说明用的API版本和时间表。

What I'm looking for is an authoritative answer regarding support library specific functionality such as the ViewPager. Are these features going to eventually be merged into the core API? Or will we continue to have to include the support package for these types of functionality? Please be specific with API versions and timelines.

修改-1/15:我更新了这个问题,停止'我也是'答案我得到。在这一问题的原始广告的时间,在Android开发者文档是在支持库的目的更加模糊,因为它们涉及到不包含在核心SDK功能。此后,他们更新了自己的文档,以澄清事情:

Edit-1/15: I'm updating this question to stop the 'Me Too' answers I'm getting. At the time of the original posting of this question, the Android Developer documentation was much more vague on the purpose of the support libraries as they relate to functionality not included in the core SDK. They have since updated their docs to clarify things:

Android的支持库包是一套提供了Android框架API的向后兼容的版本和功能,这些功能只能通过库API code库。

The Android Support Library package is a set of code libraries that provide backward-compatible versions of Android framework APIs as well as features that are only available through the library APIs.

这肯定清除了一点东西,并通知开发商不要指望搞什么ViewPager永远被轧成核心SDK功能。我已经接受这是最相关的,以我是有这个问题的答案。这就是如何添加支持包的功能,以现有的项目W / O不必显著改变codeBase的。

This certainly clears things up a bit and notifies developers to not expect things like the ViewPager to ever be rolled into the core SDK functionality. I've accepted the answer which was the most relevant to the issue I was having. That is how to add support package functionality to an existing project w/o having to significantly change the codebase.

推荐答案

我知道这是一个非常古老的问题,但我认为它仍然是相关的。 我正在寻找一个解决办法:使用viewpager无需我所有的整个项目转换为V4支持库

I know this is a very old question but I think it's still relevant. I was searching for a workaround: using viewpager without having to convert all my entire projects to the v4 support library.

答案是 V13支持库!。通过这种方式,你可以有活性的viewpager但使用 android.support.v13.app.FragmentStatePagerAdapter 来维持compability与碎片和其他有用的东西。

The answer is the v13 support library!. In this way you can have a viewpager on the activity but then use android.support.v13.app.FragmentStatePagerAdapter to maintain compability with fragments and other useful stuff.

希望它可以帮助一些谷歌上瘾 - 搜索。

Hope it helps some google-addicted-searcher.

这篇关于Android的刷卡查看与标签不使用V4支持库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆