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
545

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)
伊谢尔伦

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!