Solution to the problem that TextView cannot be displayed on the page immediately after using setText assignment_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:51:00
Original
1811 people have browsed it

When dealing with more complex logic, sometimes after settingText, it is indeed guaranteed that there is a value in it, but there is no guarantee that the page will be able to display the value! settext is just an assignment. Real changes to the interface still require CPU time to be executed through the refresh action. So, if you want to display the value directly, you have to open a separate thread to perform the assignment operation, so that it will be displayed directly.

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template