Skip to content

Releases: ashdavies/playground.ashdavies.dev

Droidcon NYC 2019: Implementing the Paging Library

15 Sep 20:24
fd5331a
Compare
Choose a tag to compare

The Android Paging Library makes it easy to integrate complex paging behaviour, gradually loading small chunks of data at a time to help reduce usage of network bandwidth and system resources.

The library allows you to implement this behaviour using compositional components in a decoupled architecture making your code more reliable, scalable, and testable. Furthermore, you’ll be able to use familiar components such as LiveData or RxJava to interface with your existing architecture.

In this talk you’ll learn:

  • how to integrate the PagedList component into your architecture
  • how to implement a DataSource to load snapshots when necessary
  • how to use BoundaryCallback to signal the end of available data
  • how to integrate LiveData or RxJava to fit your project

Droidcon Berlin 2018: Leveraging Android Data Binding with Kotlin

18 Aug 13:17
2c4ab2f
Compare
Choose a tag to compare

Android Data Binding is considered as both a powerful toolchain, empowering your views with access to view data without the necessity to build cumbersome presenters, and conversely as an overly complex, convoluted mess of binding statements opening the door to unnecessary, irresponsible domain logic in your view layouts.

Whilst the latter of these statements can be true, data binding offers a very powerful code generation syntax, allowing you to utilise the power of the compiler to ensure that your binding statements are runtime safe. Combining this with the concise syntax afforded by Kotlin allows us to dramatically cut down on boilerplate and build complex user interfaces with relative ease.

In this talk, you can learn how to utilise extension bindings and property delegates with your layouts, and manage your screen state transformations with true, and safe two-way binding, allowing you to build a fully reactive observable view layout.

Android Data Binding Beta: Sample

18 Aug 13:17
Compare
Choose a tag to compare

An example application for the Android Data Binding library, implementing retrofit to fetch a list of repositories and update a RecyclerView using the binding methods to display each repository as a view component.

Enter a GitHub username in the ActionBar SearchView component to trigger the observable request, the application uses Retrofit to query the open GitHub api for repositories, results are returned in the RecyclerView with data bindings.