2017-08-07 10 views
-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); 

を行うのですが、更にウィジェットの背景(ウィジェットの下の壁紙)をぼかすことです。

私はビットマップをぼかす方法を知っていますが、この場合、私はぼかしするビットマップを持っていません。私はウィジェットの下に背景の部分を得ることができないと思うからです。

ウィジェットの背景をぼかす方法はありますか?

ご注意ください!私はビットマップをぼかす方法を知っています。しかし、私はそれをする必要はありません。

答えて

1

ウィジェットの基礎となるビットマップにぼかしを適用する方法がないため、不可能です。部分的に透明な背景のみを作成することができます。

+0

これはオプションの種類です。しかし、誰かが何らかのハックを提供できるのであれば、私は少し待っています –

関連する問題