Call this method in the onDraw function:
protected void onDraw (Canvas canvas) {
drawCircles(canvas);
}
Every time when your UI is refreshed, the onDraw function will be called. To trigger the UI refresh. Just invalidate your custom view. For example
mCustomerView.invalidate();