一个Activity中添加多个Fragment导致fitsSystemWindows无效,在某个fragment中设置状态栏,背景,颜色都是自定义实现
无论是framelayout设置,还是viewpager设置,导致fitsSystemWindows无效的问题其中你都要设置dispatchApplyWindowInsets方法public class NewCustomViewPager extends ViewPager { private boolean isCanScroll = true; public NewCustomViewPager(Context context, AttributeSet attrs) {
原创
2020-08-07 11:14:21 ·
967 阅读 ·
0 评论