リモートビューでURLから画像を設定しようとしています。これが私が使用するコードです:
rv = new RemoteViews(mContext.getPackageName(), R.layout.widget_item_default);
WidgetItem item = mWidgetItems.get(position);
rv.setImageViewUri(R.id.imageDeal, Uri.parse(item.urlImage));
そしてレイアウトのコード:
<ImageView
android:id="@+id/imageDeal"
android:layout_width="fill_parent"
android:layout_height="80dp"
android:layout_marginBottom="2dp"
android:layout_marginLeft="4dp"
android:layout_marginRight="4dp"
android:adjustViewBounds="true"
android:scaleType="centerCrop"
android:src="@drawable/mem" />
ウィジェットが起動しますが、imageViewに画像が印刷されていません。