search

Home  >  Q&A  >  body text

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.

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

某草草某草草2829 days ago736

reply all(1)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-05-16 13:33:14

    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

    reply
    0
  • Cancelreply