Postingan

Menampilkan postingan dengan label Android Architecture

11 Weeks of Android: Jetpack

Gambar
Posted by Diana Wong, Product Manager, Android Jetpack This blog post is part of a weekly series for #11WeeksOfAndroid . For each of the #11WeeksOfAndroid , we’re diving into a key area so you don’t miss anything.This week, we spotlighted Jetpack ; here’s a look at what you should know. The big news In 2018, we launched Android Jetpack as a suite of libraries to help developers follow best practices, reduce boilerplate code, and write code that works consistently across Android versions and devices. We are excited about the growth we’ve seen and the incredible feedback that developers like you have shared with us. 47% of the top 1000 apps use 2 or more Jetpack libraries, not including core libraries like AppCompat or Lifecycle. Our work over the past year has been about making the basics easy for Android developers, so that you can focus on the code you care about. We have released many updates to our existing libraries as well as new libraries to help make building high-quality apps ...

Getting on the same page with Paging 3

Gambar
Posted by Florina Muntenescu , Android Developer Advocate Getting on the same page with Paging 3 The Paging library enables you to load large sets of data gradually and gracefully, reducing network usage and system resources. You told us that the Paging 2.0 API was not enough - that you wanted easier error handling, more flexibility to implement list transformations like map or filter , and support for list separators, headers, and footers. So we launched Paging 3.0 (now in alpha02), a complete rewrite of the library using Kotlin coroutines (still supporting Java users) and offering the features you asked for. Paging 3 highlights The Paging 3 API provides support for common functionality that you would otherwise need to implement yourself when loading data in pages: Keeps track of the keys to be used for retrieving the next and previous page. Automatically requests the correct next page when the user scrolls to the end of the loaded data. Ensures that multiple requests aren’t triggere...