开发者

Preload a view in android?

开发者 https://www.devze.com 2023-01-10 22:37 出处:网络
I have a hidden view in android that I show in response to a button press. The first time I show it t开发者_如何学JAVAhere\'s a bit of a delay, and it hitches. After that it shows\\hides smoothly.

I have a hidden view in android that I show in response to a button press. The first time I show it t开发者_如何学JAVAhere's a bit of a delay, and it hitches. After that it shows\hides smoothly.

Is there a way to preload a view so it's ready to be drawn smoothly the first time it's called upon?


Are these "hitches" happening in the emulator or on a real phone? I find sometimes things chug in the emulator but when I put it onto a phone, it performs fine.

0

精彩评论

暂无评论...
验证码 换一张
取 消