AndroidModulePattern
AndroidModulePattern copied to clipboard
组件获取到的Fragment显示与UI顺序如何保证一直,我看你DEMO中是错乱的
我看了下,你是通过报名路径,你是拿到IapplicationDelegate的集合后,然后在基类Application的Create方法中For循环去执行实现了IapplicationDelegate的类的Create方法,然后添加Fragment到ViewManager。 我想问的是获取IapplicationDelegate集合中的类的排序如果不能保证,那添加到ViewManager的Fragment集合的Fragment的顺序也就无法保证,这样的话是不是还得根据UI的界面顺序对Fragment集合重做一次排序,在添加到viewpager
你可以把保存Fragment的方式改一下,例如改成Map