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中使用遇到的问题 #42

Open
CorruptWood opened this issue Oct 12, 2018 · 1 comment
Open

在Fragment中使用遇到的问题 #42

CorruptWood opened this issue Oct 12, 2018 · 1 comment

Comments

@CorruptWood
Copy link

在Fragment中 AFragmen需要对状态栏进行渐变,BFragmen不需要渐变。

参考Demo中FragmenA、FragmentActivity,在布局中添加StatusView,

动态去修改StatusView的Alpha无效。

mStatusView.getBackground().mutate().setAlpha(alpha);

@Ronadlo7
Copy link

建议在不同的frament中动态的计算状态栏高度,然后给顶部布局设置padding

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