JasonGaoH

Results 12 comments of JasonGaoH

可以的,这个后面抽空加下。

> fragmentList.add(new HomeFragment()); > fragmentList.add(new EmptyFragment()); > fragmentList.add(new EmptyFragment()); > fragmentList.add(new EmptyFragment()); > fragmentList.add(new EmptyFragment()); > fragmentList.add(new EmptyFragment()); > fragmentList.add(new EmptyFragment()); > fragmentList.add(new EmptyFragment()); 我这边按照你提供的代码试了下,并没有出现这个问题,你这个异常是因为ViewPager的adapter中getItem方法返回的Fragment为空导致,你可以再check下这块逻辑看看

> 另 如何在点击tab是设置字体的大小及颜色 现在这个tab里面暂时还没有提供设置类似这样的方法,不过我平时一般是这样弄的: ` ```kotlin for (i in 0 until tabLayout.tabCount) { val tab = tabLayout.getTabAt(i) ?: return val textView = tab.view as TextView if (tab.isSelected) { textView.typeface =...

目前是对ViewPager有依赖的,我想问下,去除ViewPager的依赖,是换用RecyclerView这样的嘛?

带动画折叠的那个指不行的,但是我看普通的是在滑动不松手时是可以滑动的,你有录屏啥的,是必现的嘛?

如果少于6个一般情况下,建议将Tablayout里的tabMode改成"fixed",这样就能撑满显示了,这个是Tablayout的设置问题,建议根据tab的个数动态计算。

好的,后面加一下。

好像还是没有解决