Android getResources().getDrawable() deprecated API 22

后端 未结 14 2102
隐瞒了意图╮
隐瞒了意图╮ 2020-11-22 07:14

With new android API 22 getResources().getDrawable() is now deprecated. Now the best approach is to use only getDrawable().

What changed? <

14条回答
  •  暖寄归人
    2020-11-22 07:48

    en api level 14

    marker.setIcon(ResourcesCompat.getDrawable(getResources(), R.drawable.miubicacion, null));
    

提交回复
热议问题