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);

Comments

Popular posts from this blog

Working with Android Hierarchy Viewer

Android: Standalone login with SQLiteOpenHelper