Improved the Palette APIs speed and readded colored footers to artist and song adapters.
This commit is contained in:
parent
44ba560d77
commit
2ce9b38747
6 changed files with 30 additions and 62 deletions
|
|
@ -1,33 +0,0 @@
|
|||
package com.kabouzeid.gramophone.glide.palette;
|
||||
|
||||
import android.support.annotation.ColorInt;
|
||||
import android.support.v7.graphics.Palette;
|
||||
|
||||
import com.github.florent37.glidepalette.common.BaseColorGenerator;
|
||||
|
||||
/**
|
||||
* @author Karim Abou Zeid (kabouzeid)
|
||||
*/
|
||||
public class CustomTextColorGenerator extends BaseColorGenerator {
|
||||
private final int titleDark;
|
||||
private final int titleLight;
|
||||
private final int bodyDark;
|
||||
private final int bodyLight;
|
||||
|
||||
public CustomTextColorGenerator(@ColorInt int titleDark, @ColorInt int titleLight, @ColorInt int bodyDark, @ColorInt int bodyLight) {
|
||||
this.titleDark = titleDark;
|
||||
this.titleLight = titleLight;
|
||||
this.bodyDark = bodyDark;
|
||||
this.bodyLight = bodyLight;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getTitleTextColor(Palette.Swatch swatch) {
|
||||
return super.getTitleTextColor(swatch);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getBodyTextColor(Palette.Swatch swatch) {
|
||||
return super.getBodyTextColor(swatch);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue