Skip to content
New issue

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

DrawableIndicator 添加的图片显示始终为半透明 #1221

Open
Acheronsheol opened this issue Mar 19, 2024 · 2 comments
Open

DrawableIndicator 添加的图片显示始终为半透明 #1221

Acheronsheol opened this issue Mar 19, 2024 · 2 comments

Comments

@Acheronsheol
Copy link

DrawableIndicator 添加的图片显示始终为半透明,能否优化此问题,或者增加设置半透明的参数

@yuzhentao
Copy link

public DrawableIndicator(Context context, @DrawableRes int normalResId, @DrawableRes int selectedResId) {
    super(context);
    //修复Drawable指示器显示半透明的问题
    mPaint = new Paint();
    mPaint.setAntiAlias(true);

@yuzhentao
Copy link

重新设置下Paint,原因是BaseIndicator中给Paint.setColor()导致的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants