in , , , ,

Thanks Android

Thanks Android | java-memes, android-memes, version-memes, list-memes, class-memes, cli-memes, recursive-memes, IT-memes, idea-memes, ide-memes, private-memes | ProgrammerHumor.io
java-memes, android-memes, version-memes, list-memes, class-memes, cli-memes, recursive-memes, IT-memes, idea-memes, ide-memes, private-memes | ProgrammerHumor.io

Content

ProgressBarjava x 459 460 461 462 463 464 0-D 465 466 467 468 469 470 471 472 473 474 475 476 Converts a dravable to a tiled version of itself. It will recursively traverse layer and state list dravables. private Drawable tileify (Drawable drawable, boolean clip) ( TODO: This is a terrible idea that potentially destroys any drawable that extends any of these classes. We really need to remove this. if (drawable instanceof LayerDrawable) ( final LayerDrawable orig (LayerDrawable) drawable; final int N orig.getNumberOfLayers () ; final Drawable ( outDrawables new Drawable N; for lint i 0: i N: it final int id orig.getId (i); outDrawables i tileify(orig.getDrawable (i), (id R.id.progress I id R.id. secondaryProgress) )