AndroidModulePattern icon indicating copy to clipboard operation
AndroidModulePattern copied to clipboard

组件获取到的Fragment显示与UI顺序如何保证一直,我看你DEMO中是错乱的

Open LZK1991 opened this issue 7 years ago • 1 comments

我看了下,你是通过报名路径,你是拿到IapplicationDelegate的集合后,然后在基类Application的Create方法中For循环去执行实现了IapplicationDelegate的类的Create方法,然后添加Fragment到ViewManager。 我想问的是获取IapplicationDelegate集合中的类的排序如果不能保证,那添加到ViewManager的Fragment集合的Fragment的顺序也就无法保证,这样的话是不是还得根据UI的界面顺序对Fragment集合重做一次排序,在添加到viewpager

LZK1991 avatar Apr 19 '18 07:04 LZK1991

你可以把保存Fragment的方式改一下,例如改成Map

guiying712 avatar May 16 '18 02:05 guiying712