Questions tagged [android-palette]

Palette is a helper class to extract prominent colors from an image.

Palette is a helper class to extract prominent colors from an image.

A number of colors with different profiles are extracted from the image:

  • Vibrant
  • Vibrant Dark
  • Vibrant Light
  • Muted
  • Muted Dark
  • Muted Light

These can be retrieved from the appropriate getter method.

Android Palette Developers Reference

34 questions
1
vote
5 answers

Android - Should pass resolved color instead of resource id here: `getResources().getColor(R.attr.colorPrimary)`

I am following this tutorial Flexibal Space with Image For design pattern for a toolbar called Flexibal Space with Image in android. While using Palette here I am stuck in following error in java file causing application to crash. Should pass…
1
vote
1 answer

How to pick blur color from palette API in android

I am displaying layout background image every image getting from server and it is working fine. I need to layout background image to blur. I wrote a class for the same. My question is: How to pick blur color from palette API? Bluer.java public…
chanti
  • 601
  • 2
  • 8
  • 17
1
vote
0 answers

Android: Get the darker color code of Picasso Image

I am developing an application, which is mainly image based application. In my application I am taking the images from server and showing in Rounded image view which is customize. To download and show images i am using Picasso. Now the need of…
Manoj Fegde
  • 4,786
  • 15
  • 50
  • 95
1
vote
1 answer

Singleton instance of Palette Color cache

I have a list of CardViews that contain Bitmaps that return from the Network or from a LruCache. I also run a Palette.from(Bitmap).generate() operation on these bitmaps. This is expensive. I would like to save these palette colors in a HashMap<...>…
AndyRoid
  • 5,062
  • 8
  • 38
  • 73
1
vote
1 answer

Android Toolbar Menu Icon "disappear" when image background matches color

Take a look at this image In the top left is the Android hamburger menu, but it is white. Also, in the right is a search magnifying glass, also white. The problem is the background is dynamically loaded from the server depending on what is being…
dmfrey
  • 1,230
  • 1
  • 17
  • 33
1
vote
3 answers

Palette class is crashing my app on some images

I am making the Google I/O 2014 music player, and I am having trouble with the color extraction from album art. Here is my albums screen class: package com.animbus.music; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import…
0
votes
1 answer

How to avoid scrolling in a signup screen in android if the input box has lot of fields(Needs to fit in a single screen for all models)

I need to avoid the scrolling of the screens in the android signup screen. How it will be possible if the screen is like below. Now for me if the screen width is to small I need to scroll the page to see the changes. How can I avoid this scroll for…
sejn
  • 2,040
  • 6
  • 28
  • 82
0
votes
3 answers

How to make a transparent black color in a rectangular box. (color is black, but it needs to be transparent and need to show the screen behind)

How to make a transparent black color in a rectangular box. (color is black, but it needs to be transparent and need to show the screen behind) I have designed link below, but it is fully black. I have changed a clor code, but it is not in black…
sejn
  • 2,040
  • 6
  • 28
  • 82
0
votes
1 answer

Android Palette not chosing predominant colors

I have the following images : And I have the following method that returns me the Palette color from the bitmap of this images : public static int getPredominantColorFromPokemon(String pokemonId, Context context) { int pokemonImage =…
Nexussim Lements
  • 535
  • 1
  • 15
  • 47
0
votes
1 answer

Palette API not working (Works only when I'm debugging)

I created a simple RecyclerView and a CardView in it. In CardView there are ImageView and TextView. So I'm get the url of the image and load it using Picasso. Everything worked well before using Palette API. So I want to get the color from image and…
Hayk Mkrtchyan
  • 2,835
  • 3
  • 19
  • 61
0
votes
0 answers

On what criteria does the Palette class pick it's colors?

I understand that the Palette's Palette.from(bitmap).generate(); method picks by default 16 colors and then finds the best fit for the 6 main color swatches (vibrant, dark vibrant etc.) I can increase the number of generated colors…
Florian Walther
  • 6,237
  • 5
  • 46
  • 104
0
votes
1 answer

Palette Image View Android

Hi I'm trying to implement android's palette. Is it possible to set the toolbar's background color using imageview if so how ? i've tried translating it to bitmap but it didnt work the app is a web browser and i wanted to change the toolbar's…
Jack Roberts
  • 11
  • 1
  • 4
0
votes
0 answers

how to set background image layer same trasparent color on image in android

I am new to Android. How to set a layer transparent color above the image using palette API. I set background image and toolbackground color using palette API but how to set above the background image transparent color picking from palette API? Any…
chanti
  • 601
  • 2
  • 8
  • 17
0
votes
1 answer

How to change tool bar and text background color using palette API picking from image dynamically

hi i am new to android i want to change my toolbar and text background color dynamically picking color using palette color picker from image ,any one please help me how to change my toolbar color i have multi images from json object how to change…
chanti
  • 601
  • 2
  • 8
  • 17
0
votes
1 answer

Troubles with using Palette with GridView

When implementing Palette with my GridView, I am having trouble with scrolling. Basically, here's the situation: Each one of the items in the GridView has a title bar and an Image that loads. Using the Palette, the title bar is supposed to change to…
Jack
  • 2,043
  • 7
  • 40
  • 69