//得到当前view所在view结构中的根view 
View vv = v.getRootView(); 
//设置属性 vv是你要截取的View 
vv.setDrawingCacheEnabled(true); 
//取得位图 
Bitmap bm = vv.getDrawingCache(); 
//用imageView显示刚才截的图 
imageView.setImageBitmap(bm); 

相关文章:

  • 2021-06-18
  • 2022-02-19
  • 2021-12-03
  • 2022-02-25
  • 2022-01-20
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-22
  • 2021-12-07
  • 2021-12-06
  • 2021-12-27
相关资源
相似解决方案