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

TimePicker 的wheelLayout 的WhellView无法设置成纯白 #274

Closed
bibubi opened this issue Nov 19, 2021 · 2 comments
Closed

TimePicker 的wheelLayout 的WhellView无法设置成纯白 #274

bibubi opened this issue Nov 19, 2021 · 2 comments
Labels

Comments

@bibubi
Copy link

bibubi commented Nov 19, 2021

当设置成纯白色的时候,字体会变灰?

setSelectedTextColor(Color.parseColor("#ffffff"))

@liyujiang-gzu
Copy link
Member

应该是代码里有几处用-1判断了,Color.WHITE相当于就是-1:

 if (!curtainEnabled && selectedTextColor == -1) {
            return;
}
     if (selectedTextColor == -1) {
            //没有设置选中项颜色,绘制所有项
            canvas.save();
            canvas.clipRect(rectDrawn);
            if (curvedEnabled) {
                canvas.concat(matrixRotate);
            }
            drawItemText(canvas, dataPosition, drawCenterYCoordinate);
            canvas.restore();
            return;
        }

@liyujiang-gzu
Copy link
Member

参阅 4.1.5 版本

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

No branches or pull requests

2 participants