class PagingIndicator extends View {

    public void setPageCount(int pages) {
        if (pages <= 0) {
            throw new IllegalArgumentException("The page count should be a positive integer");
        }
        mPageCount = pages;
        mDots = new Dot[mPageCount];
        for (int i = 0; i < mPageCount; ++i) {
            mDots[i] = new Dot();
        }
        calculateDotPositions();
        setSelectedPage(0);
    }

    public  PagingIndicator(Context context);
    public  PagingIndicator(Context context, AttributeSet attrs);
    public  PagingIndicator(Context context, AttributeSet attrs, int defStyle);

}