public class PagerIndicator extends View { | |
private Paint paint; | |
private Paint currentPaint; | |
private ViewPager pager; | |
private int desiredRadius; | |
private Rect bounds = new Rect(); | |
// Constructors ... | |
private void setup() { | |
paint = new Paint(); | |
paint.setColor(Color.LTGRAY); | |
paint.setStyle(Paint.Style.FILL_AND_STROKE); | |
paint.setAntiAlias(true); | |
currentPaint = new Paint(); | |
currentPaint.setColor(Color.WHITE); | |
currentPaint.setStyle(Paint.Style.FILL_AND_STROKE); | |
currentPaint.setAntiAlias(true); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment