Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 如何以编程方式在 Android 上截取屏幕截图?
我想在应用程序运行时捕获当前屏幕视图。
提前致谢
View v1 = view.getRootView(); v1.setDrawingCacheEnabled(true); Bitmap bm = v1.getDrawingCache();
这里的视图意味着你的布局视图。