astuetz / PagerSlidingTabStrip

An interactive indicator to navigate between the different pages of a ViewPager
139 stars 44 forks source link

Divider Width #84

Open Diolor opened 10 years ago

Diolor commented 10 years ago

In case you want to change the divider's width heres is my two lines solution:

In .java file:

public PagerSlidingTabStrip(Context context, AttributeSet attrs, int defStyle) {
    super(context, attrs, defStyle);

   .........
   dividerWidth = a.getDimensionPixelSize(R.styleable.PagerSlidingTabStrip_pstsDividerWidth, dividerWidth);
   .........
}

And in attrs.xml:

    <attr name="pstsDividerWidth" format="dimension" />
coyarzun89 commented 10 years ago

It would be useful if the setter and getter would be available to change that. Now I have to download the project, add it to my project and do that change.