Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Space between elements of the indicator

How to increase/reduce space between elements of the indicator in ViewPagerIndicator?

like image 381
Dima Avatar asked Apr 10 '13 13:04

Dima


1 Answers

I have used CirclePageIndicator. I was able to make more space between two indicator by the step:

  1. Open the source code of CirclePageIndicator and find the variable mRadius

  2. At the line number around 235, you will find a line like below:

    final float threeRadius = mRadius * (some value here)
    
  3. Change this some value, and play with it. I used 5 for my case, it gave me a good result.

Hope it solved your problem.

like image 180
Omar Faroque Anik Avatar answered Sep 19 '22 15:09

Omar Faroque Anik