-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的背景(下插件的牆紙)。
我知道如何模糊位圖,但這種情況下,我沒有模糊的位圖,因爲我認爲我無法獲取小部件下的背景部分。
那麼有什麼辦法模糊小部件的背景?
請注意!我知道如何模糊位圖。但我不需要那樣做。
這是一種選擇。但如果有人可以提供任何破解,我會稍微等一下 –