Best of Jetpack ComposeSeptember 2024

  1. 1
    Video
    Avatar of philipplacknerPhilipp Lackner·2y

    The ONLY Correct Way to Load Initial Data In Your Android App?

    The post discusses various methods to load initial data in Android apps, evaluating three main approaches: using the Jetpack Compose launched effect, initializing in ViewModel's init block, and leveraging flow collection. Each method's benefits and drawbacks are examined, highlighting a newly preferred approach using flow collection for improved control and testing.

  2. 2
    Video
    Avatar of philipplacknerPhilipp Lackner·2y

    Keyboard & Focus Management In Jetpack Compose - Android Studio Tutorial

    This tutorial covers focus and keyboard management in Jetpack Compose for Android. It explains how to create a smooth form-filling experience by automatically moving the focus to the next text field using IME actions, and submitting the form directly from the keyboard. Detailed steps are provided to implement these features programmatically.

  3. 3
    Article
    Avatar of pandProAndroidDev·2y

    Design Server-Driven UI with Jetpack Compose and Firebase

    Server-driven UI (SDUI) is an architectural pattern reducing client-side logic by rendering UI components based on data received from the backend, enhancing flexibility and performance. Large companies like Airbnb and Netflix use this approach for consistency across platforms. SDUI helps in quicker updates without app releases, maintaining a consistent UI, and reducing the burden on mobile developers. However, it introduces challenges in terms of latency, performance, complexity, and cost. The post details the implementation with Jetpack Compose and Firebase Realtime Database, covering action handlers, component versioning, and more.

  4. 4
    Video
    Avatar of philipplacknerPhilipp Lackner·2y

    Android Studio Ladybug, Compose/Fragment Interop & More - Philipp's Android News September 2024

    Philipp's Android News for September 2024 highlights several updates for Android developers, including the new Android Studio Ladybug with integrated Gemini AI assistant, which enhances coding by providing code transformations, documentation, and unit test generation. The update also improves interoperability between fragments and Jetpack Compose, making it easier to embed and test these UI components together. Additionally, new features for simulating sensor data and analyzing crash logs have been introduced, alongside support for Google Pixel 9 devices.

  5. 5
    Video
    Avatar of philipplacknerPhilipp Lackner·2y

    How to Navigate From ViewModels With a Custom Navigator - Android Studio Tutorial

    Learn a different approach to navigation in Android using a custom Navigator with Jetpack Compose. This method allows for easy global navigation from ViewModels without directly coupling them to NavControllers. It also simplifies UI testing by providing a Navigator interface that can be managed independently. The tutorial includes setting up dependencies, defining destinations, creating a Navigator interface, and integrating with Koin for dependency injection.

  6. 6
    Article
    Avatar of pandProAndroidDev·2y

    Mastering Navigation in Jetpack Compose: A Guide to Using the inclusive Attribute

    Jetpack Compose has transformed Android UI development with a modern, concise, and powerful approach. A critical feature for managing navigation between screens is the `inclusive` attribute within the `popUpTo` function. This attribute determines whether a specific destination should be removed from the navigation back stack, aiding in streamlined user flows. Practical examples include login flows, multi-step processes, and order cancellation, where using `inclusive = true` prevents users from returning to previous screens, enhancing the app's usability.