We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
commonNavigator.setAdapter(new CommonNavigatorAdapter() { @Override public int getCount() { return null == titleList ? 0 : titleList.size(); } @Override public IPagerTitleView getTitleView(Context context, final int index) { SimplePagerTitleView titleView = new SimplePagerTitleView(context); titleView.setText(titleList.get(index)); titleView.setTextSize(14); titleView.setNormalColor(ContextCompat.getColor(GenerateResultActivity.this, R.color._666666)); titleView.setSelectedColor(ContextCompat.getColor(GenerateResultActivity.this, R.color.white)); // 设置背景色 titleView.setBackground(ContextCompat.getDrawable(GenerateResultActivity.this, R.drawable.bg_generate)); titleView.setOnClickListener(v -> mBinding.viewPager.setCurrentItem(index)); return titleView; } @Override public IPagerIndicator getIndicator(Context context) { LinePagerIndicator indicator = new LinePagerIndicator(context); indicator.setLineHeight(ConvertUtils.dp2px(34)); indicator.setRoundRadius(ConvertUtils.dp2px(8)); indicator.setColors(ContextCompat.getColor(GenerateResultActivity.this, R.color._F95A23)); return indicator; } });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: