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
应该是你自己控件的设置有问题,你在检查一下,初始化值 和 点击之后的变化值有什么不同吧,看你的控件像是个自定义的viewpager? 应该是初始值的问题,你在检查一下