UI performance about Fragment

岁酱吖の 提交于 2019-12-24 09:27:47

问题


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

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.


回答1:


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.



来源:https://stackoverflow.com/questions/8176680/ui-performance-about-fragment

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!