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

建议 #22

Open
supercwn opened this issue Jul 27, 2018 · 2 comments
Open

建议 #22

supercwn opened this issue Jul 27, 2018 · 2 comments

Comments

@supercwn
Copy link

希望能添加个两边虚化的功能

@totond
Copy link
Owner

totond commented Sep 8, 2018

好的,暂时思路是在两边加入蒙层view的方式去加,有更好的实现想法欢迎提出

@dengpan20
Copy link

希望能添加个两边虚化的功能

这个我这个弄出来了,采用view 本身已经实现的方法 ,核心代码:
setFadingEdgeLength(400); setHorizontalFadingEdgeEnabled(true);
然后初始可能没有虚化效果 根据你的需要 是否重写
` @OverRide
protected float getLeftFadingEdgeStrength() {
return 1.0f;
}

@Override
protected float getRightFadingEdgeStrength() {
    return 1.0f;
}`

结果为1.0f 则默认现实虚化。

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

3 participants