我如何...截屏 [英] How do I...screen capture
本文介绍了我如何...截屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨所有
我知道当项目有布局视图时的屏幕截图但我在android中捕获表面视图
请帮帮我....... .........
hi All
I know the screen capture when project have layout view but i cont capture the surface view in android
please help me................
推荐答案
我可能错了,但这应该有效
I might be wrong, but this should work
View v = view.getRootView();
v.setDrawingCacheEnabled(true);
Bitmap b = v.getDrawingCache();
Found an article over here[^].
-KR
参见 https://www.google.com/search?q=screen+capture+android [ ^ ]。
这篇关于我如何...截屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文