类似新闻客户端,应用市场,等基本项目框架,拿过去就能用等代码
附上示例图
界面等加载状态,子类实现相应方法后返回数据即可,有加载中,加载失败,与加载数据为空三种状态,具体可看代码
自定义view,PageSlidingTab,封装了ViewPageIndicator控制viewpage,且保留了预加载特性
并使用fragment与该view进行关联,方便界面之间通信
逻辑操作都在base与自定义view里面,子类只需实现初始化view与访问网络并返回相关数据即可,具体代码里有示例
并使用了DrawerLayout增加侧滑菜单,actionbar点击动画弹出(滑动)关闭,
如果indicator数目过多你只需删除这里与FragmentFactory中对应的framgnet即可!!!