1
我想在我的appwidget中使用几个CustomView,因此想要创建每个CustomView的位图。 所以我试着用使用customview创建部件
Bitmap customBitmap = customView.getDrawingCache(true);
remoteViews.setImageViewBitmap(R.id.imageView1, customBitmap);
但它根本不起作用。
有什么建议吗?
可以你提供更多信息?确切的代码? – bricklore
我现在包含了原始代码 – Johannes
这个自定义视图是怎样的? – Ahmad