Skip to content

Commit c4f96b7

Browse files
committed
Use MATCH_PARENT over FILL_PARENT.
1 parent 77d3bee commit c4f96b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/src/com/viewpagerindicator/TabPageIndicator.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import android.widget.LinearLayout;
2828
import android.widget.TextView;
2929

30-
import static android.view.ViewGroup.LayoutParams.FILL_PARENT;
30+
import static android.view.ViewGroup.LayoutParams.MATCH_PARENT;
3131
import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT;
3232

3333
/**
@@ -83,7 +83,7 @@ public TabPageIndicator(Context context, AttributeSet attrs) {
8383
setHorizontalScrollBarEnabled(false);
8484

8585
mTabLayout = new IcsLinearLayout(context, R.attr.vpiTabPageIndicatorStyle);
86-
addView(mTabLayout, new ViewGroup.LayoutParams(WRAP_CONTENT, FILL_PARENT));
86+
addView(mTabLayout, new ViewGroup.LayoutParams(WRAP_CONTENT, MATCH_PARENT));
8787
}
8888

8989
public void setOnTabReselectedListener(OnTabReselectedListener listener) {
@@ -160,7 +160,7 @@ private void addTab(int index, CharSequence text, int iconResId) {
160160
tabView.setCompoundDrawablesWithIntrinsicBounds(iconResId, 0, 0, 0);
161161
}
162162

163-
mTabLayout.addView(tabView, new LinearLayout.LayoutParams(0, FILL_PARENT, 1));
163+
mTabLayout.addView(tabView, new LinearLayout.LayoutParams(0, MATCH_PARENT, 1));
164164
}
165165

166166
@Override

0 commit comments

Comments
 (0)