Was unaware of Resources.getDrawable(int) deprecation after SDK 22 until updating and getting the dreaded cross-line. For projects targeting lower APIs, ContextCompact.getDrawable(Context, int) of the support library was most appropriate and for other uses, the alternatives found in the Google+ post. More info regarding this:
-- Resources -- ContextCompat -- Android getResources().getDrawable() deprecated API 22 Comments are closed.
|
AuthorExploring Android and mobile web design, security, and development. Archives
March 2021
Categories |