android - When the network loading data is filled into the control, the size of the control is the default size, and it will change to the size I set only after I click it.
某草草
某草草 2017-05-16 13:31:14
0
1
711

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

某草草
某草草

reply all(1)
伊谢尔伦

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template