android 屏幕,语言,API版本 适配和兼容性

Supporting Different Languages

http://developer.android.com/training/basics/supporting-devices/languages.html

 

Supporting Different Screens

http://developer.android.com/training/basics/supporting-devices/screens.html

 

Supporting Different Platform Versions

http://developer.android.com/training/basics/supporting-devices/platforms.html

android 屏幕,语言,API版本 适配和兼容性
privatevoid setUpActionBar(){
    // Make sure we‘re running on Honeycomb or higher to use ActionBar APIs
    if(Build.VERSION.SDK_INT >=Build.VERSION_CODES.HONEYCOMB){
        ActionBar actionBar = getActionBar();
        actionBar.setDisplayHomeAsUpEnabled(true);
    }
}
android 屏幕,语言,API版本 适配和兼容性

android 屏幕,语言,API版本 适配和兼容性

上一篇:【转】android 按home键返回到桌面后,再按桌面应用图标又重新打开该应用的解决方法


下一篇:VUE文件上传