Android 2.1 View's getDrawingCache() method always returns null

前端 未结 7 710
鱼传尺愫
鱼传尺愫 2020-11-29 09:37

I\'m working with Android 2.1 and have the following problem: Using the method View.getDrawingCache() always returns null. getDrawingCache() should return a Bitmap, which is

7条回答
  •  春和景丽
    2020-11-29 10:18

    Check out if your view is not bigger than the screen size. I found this and switched the dimensions of my view so, now it works =) Android get full View as Bitmap

提交回复
热议问题