package com.rahulpwar654.bubbleindicator;

import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.Toast;

import com.rahulpwar654.bubbleindicatorlibrary.IndicatorClickListener;
import com.rahulpwar654.bubbleindicatorlibrary.NumberedIndicator;


public class MainActivity extends AppCompatActivity implements IndicatorClickListener {

    NumberedIndicator numberedIndicator;



    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        numberedIndicator= (NumberedIndicator) findViewById(R.id.numberedindicator);

        /**
         *
         */

        numberedIndicator.setBubbleNumbers(4);
        numberedIndicator.setBackgroundColor(Color.WHITE);
        numberedIndicator.setBubbleWidgetClickListener(this);




    }

    @Override
    public void onBubbleClicked(int bubbleNum) {

        Toast.makeText(this, ""+bubbleNum+" clicked ", Toast.LENGTH_SHORT).show();


    }
}

@@ -442,18 +442,16 @@
 cator;%0A%0A
-%0A%0A
     @Ove
@@ -602,24 +602,69 @@
 ity_main);%0A%0A
+        NumberedIndicator numberedIndicator;%0A
         numb
@@ -740,45 +740,8 @@
 r);%0A
-%0A        /**%0A         *%0A         */%0A%0A
     
@@ -783,16 +783,66 @@
 ers(4);%0A
+        numberedIndicator.setSelectedBubleNum(0);%0A
         
@@ -954,20 +954,16 @@
 (this);%0A
-%0A%0A%0A%0A
     %7D%0A%0A 
@@ -1024,17 +1024,16 @@
 eNum) %7B%0A
-%0A
         
@@ -1107,17 +1107,65 @@
 show();%0A
-%0A
+        numberedIndicator.setSelectedBubleNum(0);
 %0A    %7D%0A%7D

set buble