• Stars
    star
    119
  • Rank 297,930 (Top 6 %)
  • Language
    Java
  • License
    BSD 3-Clause "New...
  • Created over 4 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Bringing reactive dataflow to RecyclerViews

Recycling Center

Recycling Center is a library designed to support a pattern: reactive, unidirectional data flow using immutable ViewModels. It combines the reactive data flow of RxJava with the efficient UI of a RecyclerView, and supports UI composition via Sections of Views and ViewModels.

pipeline

Getting Started

Recycling Center uses several primitives to create an efficient RecyclerView. See the Adding a Custom View guide for how they fit together, and a code sample to see it in action.

  • AdapterViewType: Each view in the RecyclerView has an enumerated type.
  • AdapterViewModel: Contains all the data needed to render a view, ideally including any formatting.
  • ViewBinding: Binding code that connects a ViewModel to its View.

A ViewFactory creates a View from an AdapterViewType. The ViewFactory supports background-inflated views from a ViewPrefetcher.

The Recycling Center RecyclerView.Adapter adhere to the ViewModelAdapter interface. There are a few different adapters for different use-cases:

Instead of Lists of ViewModels, the Recycling Center uses a Seekable interface to bring content to an Adapter. This simplified interface supports simple list-based binding via Seekables.copyOf(list) or efficient, fluid binding from a Cursor or other seekable stream of data.

Resources

More Repositories

1

KeyDB

A Multithreaded Fork of Redis
C++
11,327
star
2

dagger-browser

Simple tool for browsing Dagger graphs generated via an SPI plugin
TypeScript
315
star
3

ModJS

A Javascript Module for KeyDB and Redis
C
202
star
4

djinni

A tool for generating cross-language type declarations and interface bindings. Djinni's new home is in the Snapchat org.
C++
170
star
5

creative-kit-sample

Sample Apps For Creative Kit
Swift
139
star
6

camera-kit-reference

Documentation and samples of Snap's Camera Kit SDK. For the high-level documentation of Camera Kit, please visit: https://docs.snap.com/snap-kit/camera-kit/home
101
star
7

NextMind

Documentation (incl. tutorials, Unity assets and API reference) for the NextMind SDK
87
star
8

snapml-templates

Jupyter Notebook
73
star
9

login-kit-sample

Sample App For Login Kit
Java
72
star
10

camera-kit-react-native

Camera Kit wrapper for React Native
TypeScript
69
star
11

storykit

This repo contains the tutorial and sample code of using story kit.
JavaScript
55
star
12

lens-studio-templates

Lens Studio Templates
JavaScript
49
star
13

passport-snapchat

Snapchat (OAuth 2.0) authorization strategy for PassportJS
TypeScript
43
star
14

aws-support-tickets-aggregator

AWS support tickets aggregation service
Python
42
star
15

express-4.x-passport-snapchat-example

Express 4.x app using Passport for authorization with Snapchat.
JavaScript
41
star
16

camera-kit-unity-sample

Sample app for Camera Kit in Unity
JavaScript
29
star
17

bitmoji-kit-sample

Sample Apps for Bitmoji Kit
Swift
25
star
18

stuffing

Stuff multiple Applications into a single APK
Kotlin
23
star
19

KeyDB-docs

KeyDB's official documentation repo
JavaScript
17
star
20

snapchat-google-tag-manager

Snap Pixel Google Tag Manager Community Template
Smarty
15
star
21

snap-kit-carthage

Mirror for Carthage artifacts in GCS
Shell
11
star
22

ad-kit-ios

Ad Kit SDK for iOS
Objective-C
11
star
23

snap-kit-spm

Objective-C
9
star
24

snap-for-developers-sample

8
star
25

minis-samples

Sample Snap Minis
TypeScript
8
star
26

launchpad

Java
7
star
27

snap-kit-firebase-extensions

TypeScript
7
star
28

app-ads-kit-ios

Snap App Ads Kit SDK for iOS
Objective-C
5
star
29

business-sdk-python

Python
4
star
30

pixel-server-gateway

JavaScript
4
star
31

business-sdk-go

Go
4
star
32

capi-google-tag-manager-serverside-tag

Google Tag Manager Community Template For Snap Conversion API
Smarty
4
star
33

business-sdk-php

PHP
4
star
34

Lens-Studio-Plugins

Open-Sourced Plugins for Lens Studio 5
4
star
35

business-sdk-java

Java
3
star
36

business-sdk-ruby

Ruby
3
star
37

camera-kit-flutter-sample

Camera Kit sample app using Flutter wrapper
Swift
3
star
38

business-sdk-v3-java

Java
2
star
39

ts-inject

Typesafe dependency injection framework for TypeScript projects, providing easy-to-use, maintainable, and scalable code with strong type safety.
TypeScript
1
star