android 高版本函数actionBarSetup()要在低版本使用设置方法VERSION_CODES
来源:互联网 发布:苏州相城区淘宝培训 编辑:程序博客网 时间:2024/05/18 02:59
/**
* Android 1.5:Cupcake(杯子蛋糕)
* Android 1.6:Donut(甜甜圈)
* Android 2.0 / 2.1:Eclair(闪电泡芙)
* Android 2.2:Froyo(冷冻忧格)
* Android 2.3:Gingerbread(姜饼)
* Android 3.0:Honeycomb(蜂巢)
* Android 1.5:Cupcake(杯子蛋糕)
* Android 1.6:Donut(甜甜圈)
* Android 2.0 / 2.1:Eclair(闪电泡芙)
* Android 2.2:Froyo(冷冻忧格)
* Android 2.3:Gingerbread(姜饼)
* Android 3.0:Honeycomb(蜂巢)
*/
介绍:VERSION_CODES ------------这个是客户使用版本名字编码
SDK_INT ----------这个是当前的版本号编码
//函数案例
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
private void actionBarSetup() {
if(Build.VERSION.SDK_INT > Build.VERSION_CODES.HONEYCOMB){
......
}
}
//对于关系如下表格
int 1 (0x00000001)BASEOctober 2008: The original, first, version of Android.int 2 (0x00000001)BASE_1_1February 2009: First Android update, officially called 1.1.int 3 (0x00000001)CUPCAKEMay 2009: Android 1.5.int 10000 (0x00002710)CUR_DEVELOPMENTMagic version number for a current development build, which has not yet turned into an official release.int 5 (0x00000001)DONUTSeptember 2009: Android 1.6.int ECLAIRNovember 2009: Android 2.0 Applications targeting this or a later release will get these new changes in behavior: 5 (0x00000008)The Service.onStartCommand function will return the new START_STICKY behavior instead of the old compatibility START_STICKY_COMPATIBILITY.int 6 (0x00000008)ECLAIR_0_1December 2009: Android 2.0.1int 7 (0x00000008)ECLAIR_MR1January 2010: Android 2.1int 8 (0x00000008)FROYOJune 2010: Android 2.2int GINGERBREADNovember 2010: Android 2.3 Applications targeting this or a later release will get these new changes in behavior: 9 (0x00000009)The application's notification icons will be shown on the new dark status bar background, so must be visible in this situation.int 10 (0x0000000a)GINGERBREAD_MR1February 2011: Android 2.3.3.int 11 (0x0000000b)HONEYCOMBFebruary 2011: Android 3.0.int 12 (0x0000000c)HONEYCOMB_MR1May 2011: Android 3.1.int 13 (0x0000000d)HONEYCOMB_MR2June 2011: Android 3.2.int 14 (0x0000000e)ICE_CREAM_SANDWICHOctober 2011: Android 4.0.int 15 (0x0000000f)ICE_CREAM_SANDWICH_MR1December 2011: Android 4.0.3.int 16 (0x00000010)JELLY_BEANAndroid 4.1. 0 0
- android 高版本函数actionBarSetup()要在低版本使用设置方法VERSION_CODES
- 在低版本的SDK里使用高版本函数@SuppressLint("NewApi") or @TargetApi?
- 低版本android project在高版本ADK中运行方法
- Android 高版本API方法在低版本系统上的兼容性处理
- Android 高版本API方法在低版本系统上的兼容性处理
- Android 高版本API方法在低版本系统上的兼容性处理
- Android 高版本API方法在低版本系统上的兼容性处理
- VS低版本打开高版本方法
- android 项目 高版本 换成 低版本
- android 项目高版本换成低版本
- android 项目 高版本 换成 低版本
- android 项目 高版本 换成 低版本
- android系统版本与VERSION_CODES 值
- android版本兼容,高版本低版本兼容性
- 两种方法快速搞定高版本的cad图怎么在低版本中打开
- Android 在低版本sdk中没有getSupportedPreviewFrameRates函数怎么办?
- @TargetAPI标注实现在低版本SDK中使用高版本API
- 怎么在低版本中使用MenuItem的setShowAsAction方法
- struts2与JasperReport整合应用中解决PDF中文不显示问题(让我烦恼了半天)
- [Leetcode]-Unique Paths
- Ajax请求的跨域(CORS)问题
- STM8S---电源功耗管理之停机模式(halt)实现
- iPhone/iOS图片相关(读取、保存、绘制、其它相关)
- android 高版本函数actionBarSetup()要在低版本使用设置方法VERSION_CODES
- SQL Server 2008 清空删除日志文件(瞬间日志变几M)
- Android-IM架构设计
- PAT (Basic Level) Practise (中文)1027. 打印沙漏(20) C语言
- 最简单的基于FFmpeg的移动端例子:Android HelloWorld
- GIT 常用命令
- cocos2d-x 2.0版本中CCScrollView的用法
- csdn博客客户端开发日记----2015年7月22日
- C++中堆和栈的区别,自由存储区、全局静态存储区和常量存储区