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

Androidx版本设置setPageTransformer无效 #231

Open
WLC0010 opened this issue Aug 30, 2022 · 1 comment
Open

Androidx版本设置setPageTransformer无效 #231

WLC0010 opened this issue Aug 30, 2022 · 1 comment

Comments

@WLC0010
Copy link

WLC0010 commented Aug 30, 2022

setPageTransformer放在setBannerData后还是无效

@lcjiang1993
Copy link

看了下源码,
setPageTransformer() 这个方法中

private boolean overlapStyle = false;
一一直为false,因此还是会置为
this.mTransformer = Transformer.Scale;
可以这么解决:
setCustomPageTransformer(BasePageTransformer.getPageTransformer(Transformer.Default))

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