Searched refs:LEVELS_PER_SEGMENT (Results 1 – 1 of 1) sorted by relevance
67 private static final int LEVELS_PER_SEGMENT = MAX_LEVEL / NUMBER_OF_SEGMENTS; field in ProgressDrawable133 int currentSegment = level / LEVELS_PER_SEGMENT; in draw()134 int offset = currentSegment * LEVELS_PER_SEGMENT; in draw()135 float progress = (level - offset) / (float) LEVELS_PER_SEGMENT; in draw()