我的应用程序的性能问题

时间:2015-03-15 16:36:15

标签: android fragment views

我注意到有一段时间我在加载特定片段时遇到问题。 我假设这是逻辑s of the fragment, but when I deleted all the logic in onCreateView function of the fragment, I left only the views and then run over the application, I noticed that the loading time remains the same, then I tried to measure the time to load the fragment, but unfortunately it is always takes ~500-600 ms (I started to calculate the time in onclick function before the replace fragment functionality takes place up to the point of onResume in the problematic fragment) but in real device it需要〜3秒的事情,然后我尝试在sdk工具中使用hierarchyviewer来检查视图的层次结构。我发现我有280个视图,最大深度是15。 我唯一的设备是Samsung Tab 3 10.1(应用程序只能在该设备上运行)

0 个答案:

没有答案