UI performance about Fragment

2019-08-09 15:40发布

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条回答
聊天终结者
2楼-- · 2019-08-09 16:06

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.

查看更多
登录 后发表回答