FlowHelper icon indicating copy to clipboard operation
FlowHelper copied to clipboard

LabelFlowLayout 流式标签,能否结合viewpager

Open tmxd09887 opened this issue 4 years ago • 6 comments

看了下,不能设置setViewPager

tmxd09887 avatar Jul 08 '20 15:07 tmxd09887

用到 ViewPager 只是为了拿到Viewpager 滑动的参数来实现一些效果,而LabelFlowLayout 本身并不需要这些; 你把 LabelFlowLayout 放到 fragment 再跟 ViewPager 结合就好了。

LillteZheng avatar Jul 10 '20 23:07 LillteZheng

你好,我的意思是用LabelFlowLayout代替tablayout的功能,整合viewpager和fragment

tmxd09887 avatar Jul 11 '20 01:07 tmxd09887

没明白你的意思,你用 LabelFlowLayout 去替代 TabFlowLayout 干嘛呢?LabelFlowLayout 的定义就是标签布局,为换行、添加更多服务的,结合 ViewPager 实现啥功能呢? 或者你把演示效果发上来我看看

LillteZheng avatar Jul 11 '20 01:07 LillteZheng

就是要实现多行tab,效果类似附件里的 demo

tmxd09887 avatar Jul 11 '20 01:07 tmxd09887

哦哦,了解了,不过这个可能会排到比较晚,最近项目比较急,这种新功能的添加,要等到后面了。

LillteZheng avatar Jul 11 '20 01:07 LillteZheng

谢谢回答

辛苦了

tmxd09887 avatar Jul 11 '20 01:07 tmxd09887