gpt4 book ai didi

com.koolearn.klibrary.core.library.ZLibrary类的使用及代码示例

转载 作者:知者 更新时间:2024-03-13 12:13:03 26 4
gpt4 key购买 nike

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

ZLibrary介绍

暂无

代码示例

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

protected final int maxSelectionDistance() {
  if (myMaxSelectionDistance == 0) {
    myMaxSelectionDistance = ZLibrary.Instance().getDisplayDPI() / 20; // 最大选择距离
  }
  return myMaxSelectionDistance;
}

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

static ZLResourceFile createResourceFile(ZLResourceFile parent, String name) {
  return ZLibrary.Instance().createResourceFile(parent, name);
}

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

protected String buildTimeString() {
  final StringBuilder info = new StringBuilder();
  info.append(ZLibrary.Instance().getCurrentTimeString());
  return info.toString();
}

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

public ViewOptions() {
  final ZLibrary zlibrary = ZLibrary.Instance();
  final int dpi = zlibrary.getDisplayDPI();
  final int x = zlibrary.getWidthInPixels();
  final int y = zlibrary.getHeightInPixels();
  final int horMargin = Math.min(dpi / 5, Math.min(x, y) / 20);
  TwoColumnView =
    new ZLBooleanOption("Options", "TwoColumnView", x * x + y * y >= 42 * dpi * dpi);
  LeftMargin =
    new ZLIntegerRangeOption("Options", "LeftMargin", 0, 100, horMargin);
  RightMargin =
    new ZLIntegerRangeOption("Options", "RightMargin", 0, 100, horMargin);
  TopMargin =
    new ZLIntegerRangeOption("Options", "TopMargin", 0, 100, 0);
  BottomMargin =
    new ZLIntegerRangeOption("Options", "BottomMargin", 0, 100, 4);
  SpaceBetweenColumns =
    new ZLIntegerRangeOption("Options", "SpaceBetweenColumns", 0, 300, 3 * horMargin);
  ScrollbarType =
    new ZLIntegerRangeOption("Options", "ScrollbarType", 0, 4, KooView.SCROLLBAR_SHOW_AS_FOOTER);
  FooterHeight =
    new ZLIntegerRangeOption("Options", "FooterHeight", 8, dpi / 8, dpi / 12);
  ColorProfileName = new ZLStringOption("Options", "ColorProfile", ColorProfile.DAY);
  ColorProfileName.setSpecialName("colorProfile");
}

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

new Canvas(myBitmaps[iIndex]),
new ZLAndroidPaintContext.Geometry(
    ZLAndroidLibrary.Instance().getScreenWidth(),
    ZLAndroidLibrary.Instance().getScreenHeight(),
    ZLAndroidLibrary.Instance().getScreenWidth(),
    ZLAndroidLibrary.Instance().getScreenHeight(),
    0,

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

@Override
public int getBottomMargin() {
  return (int) (ZLAndroidLibrary.Instance().getDPI() * 27);
}

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

private void runEnterAnimation(View view, int position) {
  if (!animateItems) {
    return;
  }
  if (position > lastAnimatedPosition) {
    lastAnimatedPosition = position;
    view.setTranslationY(ZLAndroidLibrary.Instance().getScreenHeight());
    view.animate()
        .translationY(0)
        .setStartDelay(100 * position)
        .setInterpolator(new DecelerateInterpolator(3.f))
        .setDuration(700)
        .start();
  }
}

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

public String[] allOrientations() {
    return supportsAllOrientations()
        ? new String[]{
        SCREEN_ORIENTATION_SYSTEM,
        SCREEN_ORIENTATION_SENSOR,
        SCREEN_ORIENTATION_PORTRAIT,
        SCREEN_ORIENTATION_LANDSCAPE,
        SCREEN_ORIENTATION_REVERSE_PORTRAIT,
        SCREEN_ORIENTATION_REVERSE_LANDSCAPE
    }
        : new String[]{
        SCREEN_ORIENTATION_SYSTEM,
        SCREEN_ORIENTATION_SENSOR,
        SCREEN_ORIENTATION_PORTRAIT,
        SCREEN_ORIENTATION_LANDSCAPE
    };
  }
}

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

public ViewOptions() {
  final ZLibrary zlibrary = ZLibrary.Instance();
  final int dpi = zlibrary.getDisplayDPI();
  final int x = zlibrary.getWidthInPixels();
  final int y = zlibrary.getHeightInPixels();
  final int horMargin = Math.min(dpi / 5, Math.min(x, y) / 30);
  TwoColumnView =
    new ZLBooleanOption("Options", "TwoColumnView", x * x + y * y >= 42 * dpi * dpi);
  LeftMargin =
    new ZLIntegerRangeOption("Options", "LeftMargin", 0, 100, horMargin);
  RightMargin =
    new ZLIntegerRangeOption("Options", "RightMargin", 0, 100, horMargin);
  TopMargin =
    new ZLIntegerRangeOption("Options", "TopMargin", 0, 100, 0);
  BottomMargin =
    new ZLIntegerRangeOption("Options", "BottomMargin", 0, 100, 4);
  SpaceBetweenColumns =
    new ZLIntegerRangeOption("Options", "SpaceBetweenColumns", 0, 300, 3 * horMargin);
  ScrollbarType =
    new ZLIntegerRangeOption("Options", "ScrollbarType", 0, 4, KooView.SCROLLBAR_SHOW_AS_FOOTER);
  FooterHeight =
    new ZLIntegerRangeOption("Options", "FooterHeight", 8, dpi / 8, dpi / 12);
  ColorProfileName = new ZLStringOption("Options", "ColorProfile", ColorProfile.DAY);
  ColorProfileName.setSpecialName("colorProfile");
}

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

new Canvas(myBitmaps[iIndex]),
new ZLAndroidPaintContext.Geometry(
    ZLAndroidLibrary.Instance().getScreenWidth(),
    ZLAndroidLibrary.Instance().getScreenHeight(),
    ZLAndroidLibrary.Instance().getScreenWidth(),
    ZLAndroidLibrary.Instance().getScreenHeight(),
    0,

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

@Override
public int getBottomMargin() {
  return (int) (ZLAndroidLibrary.Instance().getDPI() * 27);
}

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

private void runEnterAnimation(View view, int position) {
  if (!animateItems || position >= ANIMATED_ITEMS_COUNT - 1) {
    return;
  }
  if (position > lastAnimatedPosition) {
    lastAnimatedPosition = position;
    view.setTranslationY(ZLAndroidLibrary.Instance().getScreenHeight());
    view.animate()
        .translationY(0)
        .setStartDelay(100 * position)
        .setInterpolator(new DecelerateInterpolator(3.f))
        .setDuration(700)
        .start();
  }
}

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

public String[] allOrientations() {
    return supportsAllOrientations()
        ? new String[]{
        SCREEN_ORIENTATION_SYSTEM,
        SCREEN_ORIENTATION_SENSOR,
        SCREEN_ORIENTATION_PORTRAIT,
        SCREEN_ORIENTATION_LANDSCAPE,
        SCREEN_ORIENTATION_REVERSE_PORTRAIT,
        SCREEN_ORIENTATION_REVERSE_LANDSCAPE
    }
        : new String[]{
        SCREEN_ORIENTATION_SYSTEM,
        SCREEN_ORIENTATION_SENSOR,
        SCREEN_ORIENTATION_PORTRAIT,
        SCREEN_ORIENTATION_LANDSCAPE
    };
  }
}

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

@Override
protected int getHeight() {
  // 1 inch height + 1/15 inch top & bottom margin
  return ZLibrary.Instance().getDisplayDPI() * 17 / 15;
}

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

static ZLResourceFile createResourceFile(ZLResourceFile parent, String name) {
  return ZLibrary.Instance().createResourceFile(parent, name);
}

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

public static void openImage(String url, int left, int top, int right, int bottom) {
  isOpen = true;
  if (isOpen) {
    final float screenWidth = ZLAndroidLibrary.Instance().getScreenWidth();
    final float screenHeight = ZLAndroidLibrary.Instance().getScreenHeight();
    int mWidth = right - left;
    int mHeight = bottom - top;

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

protected String buildTimeString() {
  final StringBuilder info = new StringBuilder();
  info.append(ZLibrary.Instance().getCurrentTimeString());
  return info.toString();
}

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

@Override
public int getTopMargin() { // 顶部距离
  return (int) (ZLAndroidLibrary.Instance().getDPI() * 27);
}

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

protected final int maxSelectionDistance() {
  if (myMaxSelectionDistance == 0) {
    myMaxSelectionDistance = ZLibrary.Instance().getDisplayDPI() / 20; // 最大选择距离
  }
  return myMaxSelectionDistance;
}

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

public static ZLResourceFile createResourceFile(String path) {
  LogUtil.i18("FilePathRes:" + path);
  ZLResourceFile file = ourCache.get(path);
  if (file == null) {
    file = ZLibrary.Instance().createResourceFile(path);
    ourCache.put(path, file);
  }
  return file;
}

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