开发者

How to determine moment when WebView (or View) ready to screenshot?

开发者 https://www.devze.com 2023-03-11 01:05 出处:网络
I have 开发者_运维知识库a problem, I need to make screenshots of WebView in different sizes at once (in portrait and lanscape) and make it fast.

I have 开发者_运维知识库a problem, I need to make screenshots of WebView in different sizes at once (in portrait and lanscape) and make it fast.

So, to make a screenshot I change WebView's layout params, and call invalidate(), as you know it works asynchronously and will take effect at some moment later.

How can I determine moment when WebView applied new layout params and ready to make screenshot?

0

精彩评论

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