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