Fragment Slow on First Run

Asked 2 years ago, Updated 2 years ago, 61 views

Hi, how are you?

The menu during UI production is implemented using Fragment. The problem is that there is a phenomenon that is too slow on the first run of the fragment.

Except for the first time, it connects at a normal speed when it's normal speed The first connection since the first drive results in a very slow phenomenon.

What's the problem?

android fragment

2022-09-22 18:26

1 Answers

There are too many reasons to give you a definite answer unless you can see the overall code flow.

Based on the fragment life cycle, there are several reasons why the initial task may be too heavy, resulting in frame degradation, and the View layer may be too complex.

First of all, if it is really difficult to understand whether the fragment is a problem, it would be better to comment on the suspected part to find the cause and find a solution for performance improvement


2022-09-22 18:26

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.