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

怎么把fragment设置成透明呢? #54

Open
xieguangqing opened this issue Sep 3, 2021 · 1 comment
Open

怎么把fragment设置成透明呢? #54

xieguangqing opened this issue Sep 3, 2021 · 1 comment

Comments

@xieguangqing
Copy link

No description provided.

@qdsfdhvh
Copy link
Collaborator

qdsfdhvh commented Sep 3, 2021

给Fragment里的view设置background就行了,传入null或者ColorDrawable(Color.Transparent)应该都是透明的;
库里的setupDefaultFragmentBackground就是给Acitivity里每个Fragment设置默认背景,不过用这个方法的话就只能和传入ColorDrawable(Color.Transparent)了。

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