android - Use All The Color Swatches In Palette -


v7.palette extract colors images. problem limited 1 swatch, , question how swatches allowing palette extract colors image , using color .please n.b: working fine,palette working fine small collection of colors

 public void updatecolor(){          final bitmap bitmap = mimagefetcher.getartwork(utils.getalbumname(),                utils.getcurrentalbumid(), utils.getartistname());        palette palette = palette.generate(bitmap);         // getting different types of colors image        palette.swatch vibrantswatch = palette.getvibrantswatch();               // adding colors textviews.         if(vibrantswatch!=null) {               // changing background color of toolbar vibrant light swatch            toolbar.setbackgrounddrawable(new colordrawable(vibrantswatch.getrgb()));             if (build.version.sdk_int >= 21) { //  setstatusbarcolor works above api 21!                getwindow().setstatusbarcolor(vibrantswatch.getrgb());            }        }     } 

palettes intend extract main colors not give distribution of colors. have elsewhere such feature.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -