All Projects → PhilippeBoisney → SimpleDroidRx

PhilippeBoisney / SimpleDroidRx

Licence: other
An application that helps you learn and better understand ReactiveX

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to SimpleDroidRx

Androidstarter
A sample Android app using the MVP architecture.
Stars: ✭ 140 (+129.51%)
Mutual labels:  dagger2, rxandroid, butterknife, retrofit2
Mvpframes
整合大量主流开源项目并且可高度配置化的 Android MVP 快速集成框架,支持 AndroidX
Stars: ✭ 100 (+63.93%)
Mutual labels:  dagger2, rxandroid, butterknife, retrofit2
Android-Starter-Kit
This is up-to-date android studio project for native android application, that is using modern tools and libraries.
Stars: ✭ 16 (-73.77%)
Mutual labels:  dagger2, rxandroid, butterknife, retrofit2
Weather-Guru-MVP
Sample Material-design Android weather application build with MVP architectural approach using Dagger2, RxJava2, Retrofit2, Event-Bus, GreenDao, Butterknife, Lottie etc.
Stars: ✭ 15 (-75.41%)
Mutual labels:  dagger2, rxandroid, butterknife, retrofit2
Moviehub
Showcases popular movies, tv shows, and people from The Movie Database
Stars: ✭ 325 (+432.79%)
Mutual labels:  dagger2, rxandroid, butterknife, retrofit2
Fineract-CN-mobile
DEPRECATED project - Check the Apache fineract-cn-mobile project instead
Stars: ✭ 17 (-72.13%)
Mutual labels:  dagger2, rxandroid, butterknife, retrofit2
AndroidStarterAlt
A sample View-based Android app using the MVP architecture. It uses Mosby, Dagger2, RxJava, retrofit, LoganSquare, requery, EventBus, Conductor.
Stars: ✭ 27 (-55.74%)
Mutual labels:  dagger2, rxandroid, butterknife, retrofit2
Kotlin Life
App界的一股清流 音视频vr应有尽有 完全按照Material design规范设计的App (written with java and Kotlin)
Stars: ✭ 864 (+1316.39%)
Mutual labels:  dagger2, rxandroid, butterknife, retrofit2
Android Clean Architecture Mvvm Dagger Rx
Implemented by Clean Architecture, Dagger2, MVVM, LiveData, RX, Retrofit2, Room, Anko
Stars: ✭ 138 (+126.23%)
Mutual labels:  sample-app, dagger2, rxandroid, retrofit2
Kotlinrxmvparchitecture
Clean MVP Architecture with RxJava + Dagger2 + Retrofit2 + Mockito + Fresco + EasiestGenericRecyclerAdapter using Kotlin. Includes Unit Tests(Kotlin Tests)!
Stars: ✭ 94 (+54.1%)
Mutual labels:  dagger2, rxandroid, retrofit2
Android Mvvm Rx3 Dagger2 Navcomponent
Implemented using MVVM, LiveData, Room, RX3, Dagger2, Coil, View Binding, Navigation Component and AndroidX
Stars: ✭ 72 (+18.03%)
Mutual labels:  dagger2, rxandroid, retrofit2
Redgram For Reddit
An Open-Sourced Android Reddit Client
Stars: ✭ 106 (+73.77%)
Mutual labels:  dagger2, rxandroid, retrofit2
Newspaper
An aggregated newspaper app containing news from 10+ local news publishers in Hong Kong. Made with ❤
Stars: ✭ 82 (+34.43%)
Mutual labels:  dagger2, rxandroid, retrofit2
Open Source Android Weather App
☔️ Open source android weather app. See "Issues" tab for current tasks queue. Tasks suitable for beginners are labeled with green "beginner friendly" tags.
Stars: ✭ 81 (+32.79%)
Mutual labels:  dagger2, butterknife, retrofit2
Just Another Android App
An Android base app with loads of cool libraries/configuration NOT MAINTAINED
Stars: ✭ 1,654 (+2611.48%)
Mutual labels:  dagger2, butterknife, retrofit2
Aiyagirl
🔥 爱吖妹纸(含 Kotlin 分支版本)——Retrofit + RxJava + MVP 架构 APP 体验代码家的干货集中营 Gank.io,福利多多,不容错过
Stars: ✭ 1,109 (+1718.03%)
Mutual labels:  dagger2, rxandroid, retrofit2
Mvparms
⚔️ A common architecture for Android applications developing based on MVP, integrates many open source projects, to make your developing quicker and easier (一个整合了大量主流开源项目高度可配置化的 Android MVP 快速集成框架).
Stars: ✭ 10,146 (+16532.79%)
Mutual labels:  dagger2, butterknife, retrofit2
ContactsApp
Go-Jek Engineering Task Used MVP and Unit Testing Espresso, Mock Webserver and Activity Instrumentation Tests ,RxJava + RxAndroid + Retrofit 2 + OkHttp 3 + Dagger2 + ButterKnife+ Glide + Active Android ORM
Stars: ✭ 21 (-65.57%)
Mutual labels:  dagger2, rxandroid, butterknife
Android Client
An android client for the MifosX platform
Stars: ✭ 150 (+145.9%)
Mutual labels:  dagger2, butterknife, retrofit2
Dagger2
Kotlin Dagger2 example project
Stars: ✭ 145 (+137.7%)
Mutual labels:  dagger2, butterknife, retrofit2

[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-SimpleDroidRx-green.svg?style=true)](https://android-arsenal.com/details/3/3998) # SimpleDroidRx An application that helps you learn and understand better ReactiveX on Android.

Introduction

I've created this project because, as everyone knows, learn ReactiveX from scratch is a tremendous challenge, and it has a pretty steep learning curve. So I tried to bring together all the samples I found useful to appreciate ReactiveX and how to use it on an Android app.

How does it works ?

With SimpleDroidRx app, you have several fragments. Each one contains some examples of ReactiveX. Each example is performed using those Rx libraries :

  • RxJava : RxJava is a Java VM implementation of Reactive Extensions: a library for composing asynchronous and event-based programs by using observable sequences.
  • RxAndroid : Android specific bindings for RxJava.
  • RxBroadcast : Reactive Broadcast and LocalBroadcast for Android.
  • RxBinding : RxJava binding APIs for Android UI widgets from the platform and support libraries.

It also uses these massive libraries:

  • ButterKnife : Bind Android views and callbacks to fields and methods.
  • Retrofit :A type-safe HTTP client for Android and Java
  • Dagger2 : Dagger is a fully static, compile-time dependency injection framework for both Java and Android. It is an adaptation of an earlier version created by Square and now maintained by Google.

Mini Screenshots

Demo

You can test this app with appetize: https://appetize.io/app/g57uqpd3m4nn8w45v0r8awfq9w

List of Samples

Each sample is on a fragment and set up in the navigation drawer. It's sorted by level of complexity (from top to bottom). Also, on each sample, an explanatory TextView is here to briefly explain what's happening:

  • Hello World : In this fragment, you'll learn how to use an Observable and Observer. Also, you'll create your first stream and use your first operator : map( ).

Explanation: When you click on the button "Map( ) my words", you'll subscribe to an observable on TextView Text. The relative stream (myStream) replaces the words "Massive View Controller" by "MVVM", "Hell Callback" by "ReactiveX" and "AsyncTask" by "RxJava". Finally it adds at the end of TextView "<3 <3 <3".

  • Famous Operator : In this fragment, you'll learn the most commons operators and will get used to them : flatMap( ), filter( ), take( ), doOnNext( )

Explanation: When you click on "Play Happy !" or use the SeekBar, you'll subscribe to an observable on a string array. The relative stream (myStream) observes each item of string array, and apply to it some functions (setSmileyToItem, setCarriotReturnToItem & filterVersionAndroidThatSucks). It also takes only the number of item set by take( ).Finally, each item is shown in the TextView.

  • Error Handling : In this fragment, you'll learn how to handle error properly. You'll use map( ) and onError ().

Explanation: When you press button, you'll subscribe to an observable to relative TextView text. The relative stream (myStreamThatHandleError) executes a function that will test String. If it contains "callback" AND "hell" then it will throw an error.

  • Background Tasks : In this fragment, you'll learn how to run one and multiple tasks in the background.

Explanation: When you press the simple "SIMPLE TASK" button, you'll subscribe to an observable that execute a single task running in background (During 4sec) and stop. When you press the "DOUBLE TASKS" button, you'll subscribe to another one observable that executes a first long task to the background (During 8sec) and when over, a second single task will start (During 4 sec).

  • Android Simple Sample : In this fragment, you'll learn how to set an observer to a button using RxView.clicks( ), and intercept network changes.

Explanation: When you start fragment, you subscribe to an observable on a network changes. When you disable Wifi or mobile connection, you'll get notified by a Snackbar. When you press the "SHOW" button, it subscribes to an observable. It will show a Snackbar.

  • Android REST Sample With Dagger2 : In this fragment, you'll learn how to make multiple http requests with only single stream. Also, you will learn how to use RxJava with Dagger2 injection.

Explanation: When you press "REFRESH" button, it will subscribe to an observable that gets Github followers of each person you've defined (In a String array), and after processing of requests, update the TextView.

Contribute

It will be awesome if you contribute to this project adding your own sample(s). Just follow this checklist :

  • 1 Create a Fragment and name it with the name of your sample. Put it on "Fragments" package. Also, create it's layout. You could use the other fragment as a model.

- 2 Add your fragment in MainActivity on "displayView" function.

- 3 Add the title of your sample in string.xml on related array (nav_drawer_labels)

- 4 You can also modify the icon menu of your sample in NavigationDrawerAdapter on "getRessource" function.

- 5 Update this README.md with your own infos. - 6 Make a pull request !

License

Copyright (C) 2016 Philippe Boisney

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].