简体   繁体   中英

How to gracefully support Android 2.x devices in apps that use the ActionBar?

I'm writing an app and I want to use the new ActionBar that is available in Android 3.x and later for Android. The app still needs to support the majority of devices out there and most are running 2.x releases.

I've configured my project so that the minSdk is set to API 8 and targetSDK is API 14.

My question is what is best practice for using new SDK features like the ActionBar and still support older devices running older builds of Android that don't support such features?

I would suggest using ActionBarSherlock . It provides backwards compatability for the ICS ActionBar, among other things.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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