AndroidStudyCode icon indicating copy to clipboard operation
AndroidStudyCode copied to clipboard

如果一个activity有很多fragment,封装的思路是怎么样的?

Open zhangxiann opened this issue 9 years ago • 1 comments
trafficstars

如果一个activity有很多fragment,那么写起来的代码就会有很多重复的,如何封装?

zhangxiann avatar Sep 01 '16 02:09 zhangxiann

抽取baseFragment啊 里面放共性方法 然后差不多的继承就是了

jerry12547 avatar Jun 06 '17 09:06 jerry12547