gpt4 book ai didi

com.koolearn.klibrary.ui.android.util.ZLAndroidColorUtil类的使用及代码示例

转载 作者:知者 更新时间:2024-03-13 11:34:23 25 4
gpt4 key购买 nike

本文整理了Java中com.koolearn.klibrary.ui.android.util.ZLAndroidColorUtil类的一些代码示例,展示了ZLAndroidColorUtil类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZLAndroidColorUtil类的具体详情如下:
包路径:com.koolearn.klibrary.ui.android.util.ZLAndroidColorUtil
类名称:ZLAndroidColorUtil

ZLAndroidColorUtil介绍

暂无

代码示例

代码示例来源:origin: ydcx/KooReader

@Override
public void setTextColor(ZLColor color) {
  if (color != null) {
    myTextPaint.setColor(ZLAndroidColorUtil.rgb(color));
  }
}

代码示例来源:origin: ydcx/KooReader

@Override
public void setFillColor(ZLColor color, int alpha) {
  if (color != null) {
    myFillPaint.setColor(ZLAndroidColorUtil.rgba(color, alpha));
  }
}

代码示例来源:origin: ydcx/KooReader

myEdgePaint.setColor(ZLAndroidColorUtil.rgb(ZLAndroidColorUtil.getAverageColor(getBitmapFrom())));

代码示例来源:origin: Jiangzqts/EpubRead

myBackgroundColor = ZLAndroidColorUtil.getAverageColor(ourWallpaper);
final int w = ourWallpaper.getWidth();
final int h = ourWallpaper.getHeight();

代码示例来源:origin: Jiangzqts/EpubRead

myEdgePaint.setColor(ZLAndroidColorUtil.rgb(ZLAndroidColorUtil.getAverageColor(getBitmapFrom())));

代码示例来源:origin: ydcx/KooReader

myBackgroundColor = ZLAndroidColorUtil.getAverageColor(ourWallpaper);
final int w = ourWallpaper.getWidth();
final int h = ourWallpaper.getHeight();

代码示例来源:origin: Jiangzqts/EpubRead

@Override
public void setTextColor(ZLColor color) {
  if (color != null) {
    myTextPaint.setColor(ZLAndroidColorUtil.rgb(color));
  }
}

代码示例来源:origin: ydcx/KooReader

myEdgePaint.setColor(ZLAndroidColorUtil.rgb(ZLAndroidColorUtil.getAverageColor(getBitmapFrom())));
myEdgePaint.setColor(ZLAndroidColorUtil.rgb(ZLAndroidColorUtil.getAverageColor(getBitmapFrom())));

代码示例来源:origin: Jiangzqts/EpubRead

@Override
public void setFillColor(ZLColor color, int alpha) {
  if (color != null) {
    myFillPaint.setColor(ZLAndroidColorUtil.rgba(color, alpha));
  }
}

代码示例来源:origin: ydcx/KooReader

@Override
public void setLineColor(ZLColor color) {
  if (color != null) {
    myLinePaint.setColor(ZLAndroidColorUtil.rgb(color));
    myOutlinePaint.setColor(ZLAndroidColorUtil.rgb(color));
  }
}

代码示例来源:origin: Jiangzqts/EpubRead

myEdgePaint.setColor(ZLAndroidColorUtil.rgb(ZLAndroidColorUtil.getAverageColor(getBitmapFrom())));
myEdgePaint.setColor(ZLAndroidColorUtil.rgb(ZLAndroidColorUtil.getAverageColor(getBitmapFrom())));

代码示例来源:origin: Jiangzqts/EpubRead

@Override
public void setLineColor(ZLColor color) {
  if (color != null) {
    myLinePaint.setColor(ZLAndroidColorUtil.rgb(color));
    myOutlinePaint.setColor(ZLAndroidColorUtil.rgb(color));
  }
}

代码示例来源:origin: Jiangzqts/EpubRead

@Override
public void clear(ZLColor color) {
  myBackgroundColor = color;
  myFillPaint.setColor(ZLAndroidColorUtil.rgb(color));
  myCanvas.drawRect(0, 0, myGeometry.AreaSize.Width, myGeometry.AreaSize.Height, myFillPaint);
}

代码示例来源:origin: ydcx/KooReader

@Override
public void clear(ZLColor color) {
  myBackgroundColor = color;
  myFillPaint.setColor(ZLAndroidColorUtil.rgb(color));
  myCanvas.drawRect(0, 0, myGeometry.AreaSize.Width, myGeometry.AreaSize.Height, myFillPaint);
}

代码示例来源:origin: Jiangzqts/EpubRead

@Override
protected void onBindView(View view) {
  super.onBindView(view);
  ((TextView) view.findViewById(R.id.color_preference_title)).setText(getTitle());
  view.findViewById(R.id.color_preference_widget).setBackgroundColor(
      ZLAndroidColorUtil.rgb(getSavedColor())
  );
}

代码示例来源:origin: ydcx/KooReader

@Override
protected void onBindView(View view) {
  super.onBindView(view);
  ((TextView) view.findViewById(R.id.color_preference_title)).setText(getTitle());
  view.findViewById(R.id.color_preference_widget).setBackgroundColor(
      ZLAndroidColorUtil.rgb(getSavedColor())
  );
}

代码示例来源:origin: ydcx/KooReader

static void setupColorView(AmbilWarnaPrefWidgetView colorView, HighlightingStyle style) {
    Integer rgb = null;
    if (style != null) {
      final ZLColor color = style.getBackgroundColor();
      if (color != null) {
        rgb = ZLAndroidColorUtil.rgb(color);
      }
    }

    if (rgb != null) {
      colorView.setBackgroundColor(rgb);
    } else {
      colorView.setBackgroundColor(0);
    }
  }
}

代码示例来源:origin: ydcx/KooReader

static void setupColorView(AmbilWarnaPrefWidgetView colorView, HighlightingStyle style) {
    Integer rgb = null;
    if (style != null) {
      final ZLColor color = style.getBackgroundColor();
      if (color != null) {
        rgb = ZLAndroidColorUtil.rgb(color);
      }
    }

    if (rgb != null) {
//y            colorView.showCross(false);
      colorView.setBackgroundColor(rgb);
    } else {
//y            colorView.showCross(true);
      colorView.setBackgroundColor(0);
    }
  }
}

代码示例来源:origin: ydcx/KooReader

static void setupColorView(AmbilWarnaPrefWidgetView colorView, HighlightingStyle style) {
    Integer rgb = null;
    if (style != null) {
      final ZLColor color = style.getBackgroundColor();
      if (color != null) {
        rgb = ZLAndroidColorUtil.rgb(color);
      }
    }

    if (rgb != null) {
      colorView.setBackgroundColor(rgb);
    } else {
      colorView.setBackgroundColor(0);
    }
  }
}

代码示例来源:origin: Jiangzqts/EpubRead

static void setupColorView(AmbilWarnaPrefWidgetView colorView, HighlightingStyle style) {
    Integer rgb = null;
    if (style != null) {
      final ZLColor color = style.getBackgroundColor();
      if (color != null) {
        rgb = ZLAndroidColorUtil.rgb(color);
      }
    }

    if (rgb != null) {
      colorView.setBackgroundColor(rgb);
    } else {
      colorView.setBackgroundColor(0);
    }
  }
}

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com