什么是Android的支持库?Android

由网友(酷味很正)分享简介:这是Android的支持库?What is the purpose of an Android Support Library?这是否意味着 http://developer.android.com/tool​​s/extras/support-library.html ?目前我的应用程序的minSdkVersi...

这是Android的支持库?

What is the purpose of an Android Support Library?

这是否意味着 http://developer.android.com/tool​​s/extras/support-library.html

目前我的应用程序的minSdkVersion被限制为10级。

Currently my app minSdkVersion is restricted to level 10.

我想使用 ViewPager ,它不适用于更高的API(例如16级)

I am trying to use ViewPager, which is not available for a higher API (for example for level 16)...

这是什么支持库是什么意思?这是否意味着我可以使用 ViewPager ,并与API级手机不到16仍然可以看到用户 ViewPager 小工具?

What does this support library mean? Does it mean I can use ViewPager, and the user of the phone with API level less than 16 can still see ViewPager widget?

推荐答案

从支持库的描述:

支持包,包括静态的支持库,你可以   添加到您的Andr​​oid应用程序,以便使用的API,要么   不适用于较老版本的平台,或者提供实用的API   不属于框架的API的一部分。我们的目标是简化   发展,通过提供更多的API,你可以捆绑您   应用程序,这样就可以少担心平台的版本。

The Support Package includes static "support libraries" that you can add to your Android application in order to use APIs that are either not available for older platform versions or that offer "utility" APIs that aren't a part of the framework APIs. The goal is to simplify your development by offering more APIs that you can bundle with your application so you can worry less about platform versions.

当然,你必须使用只可用较低的SDK函数。 你也应该看看谷歌支持库多数民众赞成在旧的SDK可以让一些新的功能。 http://developer.android.com/tool​​s/extras/support-library.html

Off course you have to use only the lower SDK available functions. You should also look the Google Support Library thats make available some new functions for older SDK. http://developer.android.com/tools/extras/support-library.html

阅读全文

相关推荐

最新文章