Android RemoteViews: setImageViewResource() vs setImageViewUri() vs setImageViewBitmap()

前端 未结 2 1377
太阳男子
太阳男子 2021-01-25 13:07

The following 3 methods (from RemoteViews class) can be used to update an image on a Home Screen widget, on Android:

setImageViewResource (int viewI         


        
2条回答
  •  醉话见心
    2021-01-25 13:41

    Some people recommend using setImageViewUri() to reduce the risk of freezing the widgets on the Home Screen. See https://code.google.com/p/android/issues/detail?id=28216#c102

提交回复
热议问题