Android: Layer Drawable uasage with Picasso Librarry
// create drawable array with index
//images will be drawn based on the index order. higher index will be drawn on top.
drawableArray[index] = new BitmapDrawable(getResources(),
Picasso.with(AppUtils.getAppContext()) .load(componentUri) .get());
//images will be drawn based on the index order. higher index will be drawn on top.
LayerDrawable layerDrawable = new LayerDrawable(drawableArray); image.setImageDrawable(layerDrawable);
Comments
Post a Comment