Posts

Showing posts with the label Picasso

Android: Layer Drawable uasage with Picasso Librarry

// create drawable array with index 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);