Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App启动慢感受的典型问题及相应的优化策略? #117

Open
ZM-Fight opened this issue Apr 2, 2015 · 9 comments
Open

App启动慢感受的典型问题及相应的优化策略? #117

ZM-Fight opened this issue Apr 2, 2015 · 9 comments

Comments

@ZM-Fight
Copy link

ZM-Fight commented Apr 2, 2015

请列举一些导致App启动慢感受的典型问题及相应的优化策略。
(例如:集中的文件内容清理操作,可通过『先标记,需读取时再更新』的方式加以优化)

@Kenber
Copy link

Kenber commented Apr 2, 2015

都是刚刚答过阿里在线笔试的人儿啊= =

@inexistence
Copy link

发现友军哈哈哈

@DancingWing
Copy link

这不是阿里的在线笔试题么。。。

@midiao
Copy link

midiao commented Apr 2, 2015

被阿里笔试的选择题虐哭,比下午的蘑菇街笔试题难太多了。

@icespring
Copy link

说一条,启动时黑屏一段时间,可以通过设启动Activity的主题背景来延缓这种感觉

@Rowandjj
Copy link

Rowandjj commented Apr 5, 2015

延迟加载,按需加载,异步加载。

@zmywly8866
Copy link

1、主题:同一个APP,使用不同的主题在启动的时候给人的感觉完全不一样,比如你给APP的主题设置为透明,其实仅仅是将之前会黑一下改为全透明而已,APP启动时间还是那么长,但给人的感官就完全不一样,因为一直显示同一个界面的时间太长;
2、动画:splash界面的过渡动画效果很重要,只要保持界面一直在动就会给人一种流畅的感觉;
3、资源:每个APP从启动到跑入口的onCreate方法这段时间长短不一,这与APP的资源复杂程度有关,所以需要考虑优化资源(这个问题之前优化过很久,没多大效果,对中间层不是很熟,还望大拿做详细解答)。

@helloHaifei
Copy link

第一个启动的Activity的背景,和主题中window background 用同一张.9的图片

@ronanhardiman
Copy link

http://www.cnblogs.com/angeldevil/p/3801209.html
这个文章写的详细一些。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants