After loading the network data, use the handler to pass the data to the main thread, and then fill it in the control. But when the data is loaded for the first time, the size of the control that loads the data is not set by me. It seems to be the default size. Only when I click once will the control become the size I set. Click before
After clicking
There should be something wrong with the settings of your own control. Check to see if there is any difference between the initialization value and the changed value after clicking. Does it look like your control is a custom viewpager? It should be a problem with the initial value, please check it