有关片段UI性能 [英] UI performance about Fragment

查看:105
本文介绍了有关片段UI性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过片段,看来,我可以用一个活动有许多片段来完成复杂的用户界面。

With fragment, it seems that, I can use one activity with many fragments to finish complicate UI.

有人告诉我,一个活动不应包括对UI性能超过100浏览,现在我想知道是否有任何性能限制,比如我有十个片段,一个片段包含约100次。

Someone told me that one activity should not include more than 100 views regarding UI performance, now I want to know is there any performance limitation, such as I have ten fragments, one fragment include about 100 views.

顺便说一句,我正在开发平板电脑的应用程序。

BTW, I am developing an app for tablet.

推荐答案

有没有在您的应用程序停止运行的意见定数。 100意见的事情仅仅是一个经验法则。不要prematurely优化。测试中的一些设备,包括slowish之一,如果它感觉很好,然后它的罚款。

There's not a set number of views at which your application stops functioning. The 100 views thing is just a rule of thumb. Don't prematurely optimize. Test on a few devices including a slowish one, and if it feels fine, then it's fine.

这篇关于有关片段UI性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆