-2
我正在制作一个时钟发射器窗口小部件(其中一个添加到启动器)。
我手工绘制的位图的时间,然后做模糊发射器窗口小部件背景
ComponentName thisWidget = new ComponentName(context, MyWidgetProvider.class);
AppWidgetManager manager = AppWidgetManager.getInstance(context);
RemoteViews remoteViews = new RemoteViews(context.getPackageName(),
R.layout.widget_layout);
// Set the text
SimpleDateFormat timeFormat = new SimpleDateFormat("hh:mm a", Locale.US);
remoteViews.setImageViewBitmap(R.id.imageView, buildUpdate(context, timeFormat.format(new Date()))); //update imageView with a new bitmap with drawn time
manager.updateAppWidget(thisWidget, remoteViews);
我想是附加模糊widget的背景(下插件的墙纸)。
我知道如何模糊位图,但这种情况下,我没有模糊的位图,因为我认为我无法获取小部件下的背景部分。
那么有什么办法模糊小部件的背景?
请注意!我知道如何模糊位图。但我不需要那样做。
这是一种选择。但如果有人可以提供任何破解,我会稍微等一下 –