首页 行业 互联网     /    AndroidFragment与Activity之间的数据交换(Fragment从Activity获取数据)

AndroidFragment与Activity之间的数据交换(Fragment从Activity获取数据)

上传者: u012440207 | 上传时间:2016/11/3 13:27:02 | 文件大小:1.42MB | 文件类型:ZIP
AndroidFragment与Activity之间的数据交换(Fragment从Activity获取数据)
Fragment与Activity之间的数据交换,大体上包括三种:一、Fragment从Activity获取数据(本文章只引见第一种);
二、Activity从Fragment获取数据;
三、Fragment之间获取数据。
实现效果:从Activity传递数据到两个Fragment中,Fragment获取数据后,展示出来。
本软件ID:7478023

文件下载

资源详情

[{"title":"(50个子文件1.42MB)AndroidFragment与Activity之间的数据交换(Fragment从Activity获取数据)","children":[{"title":"FragmentDemo5_commute","children":[{"title":".project <span style='color:#111;'>857B</span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'>563B</span>","children":null,"spread":false},{"title":"src","children":[{"title":"com","children":[{"title":"fragmentdemo5_commute","children":[{"title":"MainActivity.java <span style='color:#111;'>1.06KB</span>","children":null,"spread":false},{"title":"MyFragment1.java <span style='color:#111;'>729B</span>","children":null,"spread":false},{"title":"MyFragment2.java <span style='color:#111;'>729B</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'>893B</span>","children":null,"spread":false},{"title":"res","children":[{"title":"drawable-ldpi","children":null,"spread":false},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'>7.48KB</span>","children":null,"spread":false}],"spread":true},{"title":"values-v11","children":[{"title":"styles.xml <span style='color:#111;'>334B</span>","children":null,"spread":false}],"spread":true},{"title":"menu","children":[{"title":"main.xml <span style='color:#111;'>263B</span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'>3.69KB</span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"f2.xml <span style='color:#111;'>448B</span>","children":null,"spread":false},{"title":"activity_main.xml <span style='color:#111;'>829B</span>","children":null,"spread":false},{"title":"f1.xml <span style='color:#111;'>448B</span>","children":null,"spread":false}],"spread":true},{"title":"values-sw600dp","children":[{"title":"dimens.xml <span style='color:#111;'>203B</span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'>24.20KB</span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'>12.22KB</span>","children":null,"spread":false}],"spread":false},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'>238B</span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'>697B</span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'>220B</span>","children":null,"spread":false}],"spread":false},{"title":"values-sw720dp-land","children":[{"title":"dimens.xml <span style='color:#111;'>277B</span>","children":null,"spread":false}],"spread":false},{"title":"values-v14","children":[{"title":"styles.xml <span style='color:#111;'>391B</span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'>177B</span>","children":null,"spread":false}],"spread":true},{"title":"assets","children":null,"spread":false},{"title":"gen","children":[{"title":"com","children":[{"title":"fragmentdemo5_commute","children":[{"title":"BuildConfig.java <span style='color:#111;'>167B</span>","children":null,"spread":false},{"title":"R.java <span style='color:#111;'>2.69KB</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"libs","children":[{"title":"android-support-v4.jar <span style='color:#111;'>612.87KB</span>","children":null,"spread":false}],"spread":true},{"title":".classpath <span style='color:#111;'>475B</span>","children":null,"spread":false},{"title":"proguard-project.txt <span style='color:#111;'>781B</span>","children":null,"spread":false},{"title":"ic_launcher-web.png <span style='color:#111;'>50.19KB</span>","children":null,"spread":false},{"title":"bin","children":[{"title":"resources.ap_ <span style='color:#111;'>40.78KB</span>","children":null,"spread":false},{"title":"classes","children":[{"title":"com","children":[{"title":"fragmentdemo5_commute","children":[{"title":"R$layout.class <span style='color:#111;'>476B</span>","children":null,"spread":false},{"title":"R$style.class <span style='color:#111;'>452B</span>","children":null,"spread":false},{"title":"R$dimen.class <span style='color:#111;'>482B</span>","children":null,"spread":false},{"title":"BuildConfig.class <span style='color:#111;'>359B</span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'>428B</span>","children":null,"spread":false},{"title":"MyFragment1.class <span style='color:#111;'>1.30KB</span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'>361B</span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'>503B</span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'>743B</span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'>493B</span>","children":null,"spread":false},{"title":"R$menu.class <span style='color:#111;'>409B</span>","children":null,"spread":false},{"title":"MyFragment2.class <span style='color:#111;'>1.30KB</span>","children":null,"spread":false},{"title":"MainActivity.class <span style='color:#111;'>1.63KB</span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'>893B</span>","children":null,"spread":false},{"title":"dexedLibs","children":[{"title":"android-support-v4-b6cc8e4a2e6dae08f92b9ba7866492d7.jar <span style='color:#111;'>228.94KB</span>","children":null,"spread":false}],"spread":false},{"title":"res","children":[{"title":"crunch","children":[{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'>5.82KB</span>","children":null,"spread":false}],"spread":false},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'>3.04KB</span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'>17.47KB</span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'>9.14KB</span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"classes.dex <span style='color:#111;'>678.19KB</span>","children":null,"spread":false},{"title":"FragmentDemo5_commute.apk <span style='color:#111;'>274.95KB</span>","children":null,"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

  • lanyongjian1990:
    还不错啦,赞2016-04-15
  • AndroidFire:
    讲解的很透彻。。很有参考价值2015-12-16
  • 姜楠的world:
    还不错,帮助很大2015-09-17
  • 鸿途科技:
    可以用,,,但作用不是很大2015-08-04
  • yj427911:
    对初学者帮助很大2015-07-25

免责申明

【好快吧下载】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【好快吧下载】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【好快吧下载】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,8686821#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明