Skip to content

Commit

Permalink
Well... that was easy.
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeWharton committed Nov 21, 2011
1 parent 73454cf commit 059445b
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions library/src/com/viewpagerindicator/TabPageIndicator.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ public void onClick(View view) {
private LayoutInflater mInflater;

int mMaxTabWidth;
private int mContentHeight;
private int mSelectedTabIndex;

public TabPageIndicator(Context context) {
Expand All @@ -60,8 +59,6 @@ public TabPageIndicator(Context context, AttributeSet attrs) {
super(context, attrs);
setHorizontalScrollBarEnabled(false);

setContentHeight(45); //TODO remove

mInflater = LayoutInflater.from(context);

mTabLayout = new LinearLayout(getContext());
Expand All @@ -85,8 +82,6 @@ public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
mMaxTabWidth = -1;
}

heightMeasureSpec = MeasureSpec.makeMeasureSpec(mContentHeight, MeasureSpec.EXACTLY);

final int oldWidth = getMeasuredWidth();
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
final int newWidth = getMeasuredWidth();
Expand All @@ -97,11 +92,6 @@ public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
}
}

public void setContentHeight(int contentHeight) {
mContentHeight = contentHeight;
requestLayout();
}

private void animateToTab(final int position) {
final View tabView = mTabLayout.getChildAt(position);
if (mTabSelector != null) {
Expand Down

0 comments on commit 059445b

Please sign in to comment.