简体   繁体   English

与旧版Android兼容

[英]Compatible with older versions of Android

http://developer.android.com/training/implementing-navigation/nav-drawer.html http://developer.android.com/training/implementing-navigation/nav-drawer.html

I have implemented this feature, it quite well works on android 4.0 and up. 我已经实现了此功能,它在android 4.0及更高版本上都可以很好地工作。

But I need to make this project compatible with android 2.2, 3.0 etc. 但是我需要使该项目与android 2.2、3.0等兼容。

I tried to add android-support library but it does not work, since someone suggested to do so. 我试图添加android-support库,但由于有人建议这样做,因此它无法正常工作。

How can I achieve my goal? 我如何实现我的目标?

It should work with adding the support v4 library jar. 它应该与添加支持v4库jar一起工作。 However, it is recently added and using an older version of this jar will result in errors. 但是,它是最近添加的,使用此jar的较旧版本将导致错误。

Update your ADK & ADT and start a new Android project. 更新您的ADK和ADT并开始一个新的Android项目。 This will create a new project with the latest and greatest support v4 library. 这将创建一个具有最新和最大支持v4库的新项目。 Just copy-paste that in your libs/ folder of your own project to replace the old one. 只需将其复制粘贴到您自己的项目的libs /文件夹中即可替换旧的项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM