Beam icon indicating copy to clipboard operation
Beam copied to clipboard

BeamFragment为什么不加上ViewExpansionDelegate

Open fuxuemingzhu opened this issue 8 years ago • 3 comments

Fragment没法调用显示progressBar和Error等。只有Activity中才可以。我感觉Fragment中加载数据进行进度显示等也是很必要的啊。求BeamFragment中加上ViewExpansionDelegate。

fuxuemingzhu avatar Apr 24 '16 03:04 fuxuemingzhu

...我感觉我已经对Activity进行了一次改造。Activity包含Fragment。再对Fragment进行这类改造有些重复。如果你Fragment所属的Activity是BeamBaseActivity的话。可以直接getActivity再强制转型使用它的API。这里确实不怎么优雅。有什么好的建议吗。

Jude95 avatar Apr 24 '16 04:04 Jude95

能不能专门做一个帮助类ProgressHelper,通过在BeamFragment的OnCreateView中传入container的方式初始化,然后就可以在Fragment中任意使用了?

fuxuemingzhu avatar Apr 24 '16 08:04 fuxuemingzhu

@_@..确实不错,可以考虑把这层逻辑提出来按需注入。改动比较大。加进TODOList吧。也许要等一段时间。。

Jude95 avatar Apr 24 '16 08:04 Jude95