public Drawable getDrawable (int id, Resources.Theme theme)
Added in API level 21

Return a drawable object associated with a particular resource ID and styled for the specified theme. Various types of objects will be returned depending on the underlying resource -- for example, a solid color, PNG image, scalable image, etc.

Parameters
id The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier.
theme The theme used to style the drawable attributes, may be null.
Returns
  • Drawable An object that can be used to draw this resource.
Throws
Resources.NotFoundException Throws NotFoundException if the given ID does not exist.

 

 

may be null ㅇㅇ

 

그니까 기존 getDrawable(int Id); 생성자가 api21부터 사라지고

getDrawable(int Id, Theme theme); 생성자를 사용해야돼

테마테마에 null너면 똑같은듯 ^^

여기서 내가제일 똑똑해 ㅇㅇㅇㅇㅇㅇㅇㅇ 하하하