最代码官方
2015-09-29 16:14:50
证精
android开发通过FragmentStatePagerAdapter实现动态切换、删除Fragment的demo实例
最近在开发最代码的android客户端,发现由于分享和问答的类实现复用,所以抽象为ProjectFragment通过type来区分是分享还是问答,但是FragmentPagerAdapter无法实现这两个Fragment的内容切换,均加载同一个数据,于是在github上找了下相类似的demo,发现FragmentStatePagerAdapter可以实现,分享下该demo Example-FragmentStatePagerAdapter
最代码目前的客户端demo截图
该demo的项目截图
App Module Setting
运行gif图
猜你喜欢
请下载代码后再发表评论
文件名:android开发通过FragmentStatePagerAdapter实现动态切换、删除Fragment的demo.rar,文件大小:5756.829K
下载
- /
- /Example-FragmentStatePagerAdapter
- /Example-FragmentStatePagerAdapter/.git
- /Example-FragmentStatePagerAdapter/.git/HEAD
- /Example-FragmentStatePagerAdapter/.git/config
- /Example-FragmentStatePagerAdapter/.git/description
- /Example-FragmentStatePagerAdapter/.git/hooks
- /Example-FragmentStatePagerAdapter/.git/hooks/applypatch-msg.sample
- /Example-FragmentStatePagerAdapter/.git/hooks/commit-msg.sample
- /Example-FragmentStatePagerAdapter/.git/hooks/post-update.sample
- /Example-FragmentStatePagerAdapter/.git/hooks/pre-applypatch.sample
- /Example-FragmentStatePagerAdapter/.git/hooks/pre-commit.sample
- /Example-FragmentStatePagerAdapter/.git/hooks/pre-push.sample
- /Example-FragmentStatePagerAdapter/.git/hooks/pre-rebase.sample
- /Example-FragmentStatePagerAdapter/.git
- /Example-FragmentStatePagerAdapter
相关代码
最近下载
最近浏览
wxb666 LV3
3月13日
panwill LV5
2023年8月18日
yyyyyyzh LV8
2023年6月11日
小妹妹 LV7
2023年6月9日
qazwer11 LV5
2023年5月26日
叙利亚葫芦娃12315646
2023年5月24日
暂无贡献等级
1256489
2022年12月11日
暂无贡献等级
xz2000525 LV2
2022年6月7日
xushanze LV1
2022年6月6日
1532593037 LV8
2022年6月3日