Best of Jetpack ComposeJuly 2024

  1. 1
    Article
    Avatar of pandProAndroidDev·2y

    Jetpack Compose Previews: Delving Deep Into Their Inner Workings

    Jetpack Compose Previews enable rapid UI design iterations and can be run using `adb` without Android Studio. Understanding `PreviewActivity` and its role in hosting composables, as well as how to customize previews in multi-modular projects, can greatly enhance the development process. The guide provides detailed steps on generating and running instrumented APKs for previews and customizing preview behavior and appearance.

  2. 2
    Article
    Avatar of pandProAndroidDev·2y

    PDF Viewer using Coil

    Learn how to integrate a PDF viewer into your Android app using Coil. This guide covers creating a custom PDF decoder, adding it to the Coil configuration, and displaying PDF pages in activities or with Jetpack Compose. The approach leverages Coil’s extensibility for handling non-standard image formats efficiently.

  3. 3
    Article
    Avatar of pandProAndroidDev·2y

    Type Safe Bottom Navigation in Jetpack Compose

    This guide delves into the advanced concepts of Type Safe Bottom Navigation in Jetpack Compose. It explains how to use Serializable objects for navigation routes, thus eliminating the need for route build functions and navArguments. The guide covers setting up a BottomBar with three routes, handling active tabs, generating route patterns, and managing navigation routes with arguments. It simplifies navigation setup, ensuring type safety and enhancing readability.