| | |
| | | tabView.setText(text); |
| | | tabView.setTextColor(R.color.black1); |
| | | tabView.setBackgroundResource(R.drawable.found__tab_indicator); |
| | | tabView.setPadding(0,0,0,DimenUtils.dip2px(getContext(), 6)); |
| | | tabView.setPadding(0, 0, 0, DimenUtils.dip2px(getContext(), 6)); |
| | | |
| | | if (iconResId != 0) { |
| | | tabView.setCompoundDrawablesWithIntrinsicBounds(iconResId, 0, 0, 0); |
| | |
| | | @Override |
| | | public void setCurrentItem(int item) { |
| | | if (mViewPager == null) { |
| | | throw new IllegalStateException("ViewPager has not been bound."); |
| | | return; |
| | | } |
| | | mSelectedTabIndex = item; |
| | | mViewPager.setCurrentItem(item); |