Skip to content

Commit

Permalink
Adding Getters and making getIndicatorCoordinates() public so it can …
Browse files Browse the repository at this point in the history
…be overwritten (#155)

* Adding Getters and making getIndicatorCoordinates() public so it can be overwritten

* Fixing getter names and spacing
  • Loading branch information
fawaad authored and jpardogo committed Sep 2, 2016
1 parent 3437bd2 commit 1f63061
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion library/src/com/astuetz/PagerSlidingTabStrip.java
Expand Up @@ -310,7 +310,7 @@ private void scrollToChild(int position, int offset) {
}
}

private Pair<Float, Float> getIndicatorCoordinates() {
public Pair<Float, Float> getIndicatorCoordinates() {
// default: line below current tab
View currentTab = mTabsContainer.getChildAt(mCurrentPosition);
float lineLeft = currentTab.getLeft();
Expand Down Expand Up @@ -633,6 +633,22 @@ public int getTabPaddingLeftRight() {
return mTabPadding;
}

public LinearLayout getTabsContainer() {
return mTabsContainer;
}

public int getTabCount() {
return mTabCount;
}

public int getCurrentPosition() {
return mCurrentPosition;
}

public float getCurrentPositionOffset() {
return mCurrentPositionOffset;
}

public void setIndicatorColor(int indicatorColor) {
this.mIndicatorColor = indicatorColor;
invalidate();
Expand Down

0 comments on commit 1f63061

Please sign in to comment.