MagicIndicator icon indicating copy to clipboard operation
MagicIndicator copied to clipboard

Indicator被遮挡不显示

Open Yzdream opened this issue 5 years ago • 1 comments

@Override public IPagerTitleView getTitleView(Context context, int index) { ColorTransitionPagerTitleView colorTransitionPagerTitleView = new ColorTransitionPagerTitleView(context); colorTransitionPagerTitleView.setBackground(getResources().getDrawable(R.drawable.green_ripple)); colorTransitionPagerTitleView.setText(accountTypes.get(index).getTypeName()); colorTransitionPagerTitleView.setTextSize(15); //选中时字体颜色 colorTransitionPagerTitleView.setSelectedColor(getResources().getColor(R.color.white)); //未选中时字体颜色 colorTransitionPagerTitleView.setNormalColor(getResources().getColor(R.color.gray_b2)); colorTransitionPagerTitleView.setOnClickListener(v -> mBinding.viewPage.setCurrentItem(index)); return colorTransitionPagerTitleView; }

设置setBackground之后,指示器就不显示了,请问有解决办法吗

Yzdream avatar May 27 '19 08:05 Yzdream

CommonNavigator.setIndicatorOnTop(true)

hackware1993 avatar Jun 20 '19 05:06 hackware1993