//通知栏加载网络图片
fun loadShowWidgetTarget(context: Context, url: String, remoteViews: RemoteViews, viewId: Int) {
Glide.with(context).asBitmap().load(url).into(
AppWidgetTarget(
context,
viewId,
remoteViews,
viewId
)
)
}
//通知栏加载网络图片
fun loadShowNotification(
context: Context, notification: Notification,
notificationId: Int, url: String, remoteViews: RemoteViews, viewId: Int
) {
val notificationTarget =
NotificationTarget(context, viewId, remoteViews, notification, notificationId)
Glide.with(context).asBitmap().load(url).into(notificationTarget)
}
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交