Android implements the button to obtain focus and delay loading
•
Android
After seeing the button of JD TV app to get the focus, the data was loaded. Before, no good statement was found on the Internet, so I realized recording for follow-up learning.
After the button obtains the focus, initialize a timer. The timer delays loading data for 500ms. If the focus is lost, cancel the timer. In fact, the principle is very simple. Here is an effect I achieved.
The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码