amitshekhariitbhu/RxJava2-Android-Samples is a mobile-focused project on GitHub with 4.9k stars, written primarily in Java. RxJava 2 Android Examples - How to use RxJava 2 in Android
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
Hi, I am Amit Shekhar, Founder @ Outcome School • IIT 2010-14 • I have taught and mentored many developers, and their efforts landed them high-paying tech jobs, helped many tech companies in solving their unique problems, and created many open-source libraries being used by top companies. I am passionate about sharing knowledge through open-source, blogs, and videos.
Follow Amit Shekhar
X/Twitter
LinkedIn
GitHub
Follow Outcome School
YouTube
X/Twitter
LinkedIn
GitHub
I teach at Outcome School
AI and Machine Learning
Android
Join Outcome School and get a high-paying tech job: Outcome School
Just Build the project and start learning RxJava by examples.
RxJava 2.0 has been completely rewritten from scratch on top of the Reactive-Streams specification. The specification itself has evolved out of RxJava 1.x and provides a common baseline for reactive systems and libraries.
Using RxJava 2.0 Library in your application
Add this in your build.gradle
compile 'io.reactivex.rxjava2:rxjava:X.X.X'
If you are using RxAndroid also, then add the following
compile 'io.reactivex.rxjava2:rxandroid:X.X.X'
RxJava 2 Operators Examples present in this sample project:
Map -> transform the items emitted by an Observable by applying a function to each item. Blog: RxJava Operator Map vs FlatMap
Zip -> combine the emissions of multiple Observables together via a specified function and emit single items for each combination based on the results of this function
Filter -> emit only those items from an Observable that pass a predicate test
FlatMap -> transform the items emitted by an Observable into Observables, then flatten the emissions from those into a single Observable. Blog: RxJava Operator Map vs FlatMap
Take -> emit only the first n items emitted by an Observable. Blog for reference
Reduce -> apply a function to each item emitted by an Observable, sequentially, and emit the final value
Skip -> suppress the first n items emitted by an Observable
Buffer -> periodically gather items emitted by an Observable into bundles and emit these bundles rather than emitting the items one at a time
Concat -> emit the emissions from two or more Observables without interleaving them. Blog for reference
Replay -> ensure that all observers see the same sequence of emitted items, even if they subscribe after the Observable has begun emitting items
Merge -> combine multiple Observables into one by merging their emissions
SwitchMap -> transform the items emitted by an Observable into Observables, and mirror those items emitted by the most-recently transformed Observable
Highlights of the examples :
DisposableExampleActivity - Using CompositeDisposable. Blog for reference
FlowableExampleActivity - Using Flowable and reduce operator
SingleObserverExampleActivity - Using SingleObserver
CompletableObserverActivity - Using CompletableObserver
MapExampleActivity - Using map Operator. Blog: RxJava Operator Map vs FlatMap
ZipExampleActivity - Using zip Operator
BufferExampleActivity - Using buffer Operator
TakeExampleActivity - Using take Operator. Blog for reference
ReduceExampleActivity - Using reduce Operator
FilterExampleActivity - Using filter Operator
SkipExampleActivity - Using skip Operator
ReplayExampleActivity - Using replay Operator
ConcatExampleActivity - Using concat Operator. Blog for reference
MergeExampleActivity - Using merge Operator
DeferExampleActivity - Using defer Observable
SwitchMapExampleActivity - Using switchMap Observable
IntervalExampleActivity - Using Interval. Blog for reference
PaginationActivity - Pagination for loadMore in RecyclerView. Blog: Pagination In RecyclerView Using RxJava Operators
ComposeOperatorExampleActivity - Compose operator for reusable
Search Implementation - Using debounce, switchMap, distinctUntilChanged
Implement Caching Using RxJava Operators - Using concat, firstElement
PublishSubjectExampleActivity. Blog: RxJava Subject - Publish, Replay, Behavior, and Async
Find this project useful ? :heart:
Support it by clicking the :star: button on the upper right of this page. :v:
Thanks
Amit Shekhar
Co-Founder @ Outcome School
You can connect with me on:
Twitter
LinkedIn
GitHub
Facebook
Read all of our blogs here.
License
Copyright (C) 2024 Amit Shekhar
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.
How active is development on amitshekhariitbhu/RxJava2-Android-Samples?
The most recent commit recorded on amitshekhariitbhu/RxJava2-Android-Samples was 9 months ago, based on the GitHub push timestamp. The repository has 1.0k forks — one of the better signals of community interest.
Is amitshekhariitbhu/RxJava2-Android-Samples open source?
Yes — amitshekhariitbhu/RxJava2-Android-Samples ships under the Apache-2.0 license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/amitshekhariitbhu/RxJava2-Android-Samples.
What license does amitshekhariitbhu/RxJava2-Android-Samples use?
amitshekhariitbhu/RxJava2-Android-Samples is released under the Apache-2.0 license. Always verify the LICENSE file directly on GitHub for the authoritative terms — license strings can be edited out of sync with a project's actual stance.
What topics is amitshekhariitbhu/RxJava2-Android-Samples associated with?
Where can I see amitshekhariitbhu/RxJava2-Android-Samples in action?
The project maintains a homepage at https://outcomeschool.com. The README tab on this page also usually contains screenshots and a quickstart.
Where do I read more about amitshekhariitbhu/RxJava2-Android-Samples?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/amitshekhariitbhu/RxJava2-Android-Samples is the definitive source.
Read full README in the tab above.
Want a second opinion on RxJava2-Android-Samples?
Ask an AI that can read this page — one click and you get its take on RxJava2-Android-Samples.