rx-android-playground:使用RxJava和RxAndroid的示例Android应用

上传者: 42168555 | 上传时间: 2023-09-25 09:28:25 | 文件大小: 95KB | 文件类型: ZIP
使用RxJava和RxAndroid的示例Android应用 该项目是RxJava + RxAndroid用法的示例。 在我看来,尽管RxJava是一个很棒的工具和概念,但它在Android中的用法远非显而易见。 当重新查询更改后的数据时,ContentProvider已经使用了Observer模式,我们很少需要在移动应用程序中进行一些复杂的过滤。 也就是说,我确实相信在某些情况下了解RxAndroid可以简化生活。 假设我们要通过每个州(加利福尼亚州,俄亥俄州等)中搜索职位(教师,护士等)。 在最简单的情况下,我们需要一个输入字段和美国州列表,并且我们想在查询或状态更改时加载作业: RxJava是关于事件流的。 在我们的案例中,事件可以是查询更新,也可以是其他状态,然后应使用给定的查询/状态执行API请求,并显示结果: 用户键入查询字符串或选择美国状态-> API请求->处理并显

文件下载

资源详情

[{"title":"( 44 个子文件 95KB ) rx-android-playground:使用RxJava和RxAndroid的示例Android应用","children":[{"title":"rx-android-playground-master","children":[{"title":"RxAndroid","children":[{"title":"gradlew <span style='color:#111;'> 4.96KB </span>","children":null,"spread":false},{"title":"settings.gradle <span style='color:#111;'> 15B </span>","children":null,"spread":false},{"title":".idea","children":[{"title":"runConfigurations.xml <span style='color:#111;'> 564B </span>","children":null,"spread":false},{"title":"misc.xml <span style='color:#111;'> 2.57KB </span>","children":null,"spread":false},{"title":"compiler.xml <span style='color:#111;'> 709B </span>","children":null,"spread":false},{"title":"gradle.xml <span style='color:#111;'> 684B </span>","children":null,"spread":false},{"title":".name <span style='color:#111;'> 9B </span>","children":null,"spread":false},{"title":"modules.xml <span style='color:#111;'> 355B </span>","children":null,"spread":false},{"title":"copyright","children":[{"title":"profiles_settings.xml <span style='color:#111;'> 74B </span>","children":null,"spread":false}],"spread":true},{"title":"vcs.xml <span style='color:#111;'> 164B </span>","children":null,"spread":false}],"spread":true},{"title":"gradle","children":[{"title":"wrapper","children":[{"title":"gradle-wrapper.properties <span style='color:#111;'> 231B </span>","children":null,"spread":false},{"title":"gradle-wrapper.jar <span style='color:#111;'> 48.73KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"RxAndroid.iml <span style='color:#111;'> 940B </span>","children":null,"spread":false},{"title":"gradlew.bat <span style='color:#111;'> 2.35KB </span>","children":null,"spread":false},{"title":"gradle.properties <span style='color:#111;'> 855B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 91B </span>","children":null,"spread":false},{"title":"app","children":[{"title":"src","children":[{"title":"androidTest","children":[{"title":"java","children":[{"title":"sample","children":[{"title":"rxandroid","children":[{"title":"ApplicationTest.java <span style='color:#111;'> 347B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"AndroidManifest.xml <span style='color:#111;'> 869B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"mipmap-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.34KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 4.73KB </span>","children":null,"spread":false}],"spread":false},{"title":"menu","children":[{"title":"menu_main.xml <span style='color:#111;'> 361B </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false}],"spread":false},{"title":"layout","children":[{"title":"jobs_adapter_item.xml <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"activity_main.xml <span style='color:#111;'> 1.97KB </span>","children":null,"spread":false}],"spread":false},{"title":"values-w820dp","children":[{"title":"dimens.xml <span style='color:#111;'> 358B </span>","children":null,"spread":false}],"spread":false},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 2.18KB </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 194B </span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'> 211B </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 7.54KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"java","children":[{"title":"sample","children":[{"title":"rxandroid","children":[{"title":"ui","children":[{"title":"JobAdapter.java <span style='color:#111;'> 4.61KB </span>","children":null,"spread":false},{"title":"MainActivity.java <span style='color:#111;'> 5.83KB </span>","children":null,"spread":false}],"spread":false},{"title":"RxAndroid.java <span style='color:#111;'> 304B </span>","children":null,"spread":false},{"title":"network","children":[{"title":"RestApiDefinitions.java <span style='color:#111;'> 346B </span>","children":null,"spread":false},{"title":"Urls.java <span style='color:#111;'> 242B </span>","children":null,"spread":false},{"title":"DateDeserializer.java <span style='color:#111;'> 904B </span>","children":null,"spread":false},{"title":"RestApi.java <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false},{"title":"Job.java <span style='color:#111;'> 1.43KB </span>","children":null,"spread":false},{"title":"RateIntervalCode.java <span style='color:#111;'> 143B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"app.iml <span style='color:#111;'> 8.42KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 7B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"proguard-rules.pro <span style='color:#111;'> 906B </span>","children":null,"spread":false}],"spread":true},{"title":"build.gradle <span style='color:#111;'> 436B </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 5.62KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

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