-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1164f9e
commit 9c862cc
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
## 面试问题 | ||
|
||
###### 1、android5.0-8.0各版本的主要新特性 | ||
|
||
android 5.0 : | ||
|
||
- MaterialDesign设计风格 | ||
|
||
- JobScheduler 通过为系统定义要在以后的某个时间或在指定的条件下(例如,当设备在充电时)异步运行的作业来优化电池寿命 | ||
|
||
- 支持64位ART虚拟机 | ||
|
||
android 6.0: | ||
|
||
- 动态权限申请 | ||
- 添加新控件 FloatingActionButton , Snackbar , TabLayout , NavigationView , CoordinatorLayout | ||
|
||
android 7.0: | ||
|
||
- 画中画 | ||
- 分屏多任务 | ||
- 增强的Java8语言模式 | ||
- Android 7.0中采用了一项具有实时代码剖析功能的ARI JIT编译器,它能够在安卓应用程序在运行时不断提高自身的性能 | ||
|
||
android 8.0(26) 8.1(27) | ||
|
||
- 后台执行限制:Android 8.0 为提高电池续航时间而引入的变更之一是,当您的应用进入已缓存状态时,如果没有活动的组件,系统将解除应用具有的所有唤醒锁 | ||
|
||
现在,在后台运行的应用对后台服务的访问受到限制 | ||
|
||
应用无法使用其清单注册大部分隐式广播(即,并非专门针对此应用的广播) | ||
|
||
- Android 后台位置限制:降低了后台应用接收位置更新的频率 | ||
|
||
###### 2.图片压缩的方法 | ||
|
||
- options对象中insampleSize属性 当inSampleSize = 2 时,宽高各缩小2倍,内存加载影响是4倍 | ||
|
||
- 色彩空间默认Bitmap.Config ARGB_8888 32位 每个像素占4个字节 | ||
|
||
RGB_565 没有透明度描述 每个像素2个字节 Glide默认使用RGB_565 | ||
|
||
- 使用TinyPng工具对图片进行压缩: | ||
|
||
使用智能的有损压缩算法,通过减少图片的颜色,从而在几乎不影响视觉的情况下,显著的减少图片的体积. |