Jetpack Compose by Tutorials | Kodeco


This guide is for intermediate Android builders, who wish to increase their information of the UI toolkit and add extra instruments to construct stunning interfaces
to their belt, with Jetpack Compose. It’s additionally for superior builders who’re properly versed with the legacy Android Toolkit
and presumably know one thing about Jetpack Compose, however haven’t had the time to dive deep into the subject and discover extra superior ideas of Compose corresponding to
state dealing with, connecting the declarative UI to utility structure sample, utilizing animations and extra.

  • Jetpack Compose Fundamentals
  • Composable Features
  • Modifiers
  • Recomposition
  • Jetpack Compose UI Tree
  • Jetpack Compose State
  • Dynamic Composable Features
  • Constructing Lists in Jetpack Compose
  • Combining Composables
  • Jetpack Compose State Dealing with
  • Materials Design Composable Features
  • Materials Design Modifiers
  • ConstraintLayout in Jetpack Compose
  • Complicated Jetpack Compose UI
  • Jetpack Compose Lifecycle
  • Results
  • Jetpack Compose Animation API
  • Property Animations
  • Transitions
  • Prop Keys
  • View Toolkit Backwards Compatibility
  • Glances
  • UI Testing
  • Accessibility

On this guide, you’ll learn to construct a robust app utilizing Jetpack Compose, the right way to fashion your apps utilizing Materials Design, particular animations and state transitions, the right way to use modifiers and way more!
This guide will serve you as a central level that holds all the data you want…


This part tells you a couple of issues you could know earlier than you get began, corresponding to what {hardware} and software program you’ll want, the place to seek out the venture information for this guide, and extra.

Android UI Toolkit is over 10 years outdated now! Through the years, it has obtained quite a few updates by way of performance, kinds of UI parts it offers and optimizations. Nevertheless, due to the best way the UI group initially developed the toolkit, it additionally grew in complexity and the quantity of code for even the only of elements.

Lastly, in 2020, a miracle occurred: Jetpack Compose. The brand new UI toolkit was introduced and began being significantly developed by Google. Jetpack Compose is a brand new and recent toolkit, constructed utterly in Kotlin, that gives a clear and declarative solution to develop customized elements and delightful interfaces.

On this part, you’ll be taught all about:

  • The basic elements Jetpack Compose offers.
  • Methods to construct widespread consumer interface elements corresponding to containers, navigation controls and lists.

Within the following 4 chapters, you’ll dive deep into the API and be taught a lot about this glorious new UI toolkit.

Through the years, the Android UI toolkit has been developed to supply a number of
totally different approaches on the subject of writing consumer interface code. From growing
a totally programmatic interface or writing XML-powered layouts, to utilizing totally different
libraries with customized DSLs, there have been many options to the identical situation of
reusability, scalability and efficiency. Evaluate legacy methods of writing UI code,
and discover the brand new and superior UI toolkit referred to as Jetpack Compose.

Be taught extra concerning the principle of composable capabilities by making an attempt out the
primary Jetpack Compose elements. Every composable perform has a code pattern and is proven contained in the app.

The chapter covers the idea behind composable layouts and directions on the right way to use these layouts to group primary parts right into a extra advanced UI.

This chapter covers the idea behind scrollable containers and constructing dynamic horizontal and vertical lists in Jetpack Compose.

When engaged on apps and consumer interfaces, it’s not solely necessary to know what each bit of the interface needs to be, but additionally how all these items come collectively to construct a ravishing and fully-functional design that’ll wow your customers.

Now that you simply’ve learnt the fundamentals of Jetpack Compose and its basic UI parts, you’re able to dive deeper into constructing customized Compose parts, managing their state in a performant approach and styling them utilizing modifiers and built-in Materials Design options.

Over the following 4 chapters, you’ll learn to:

  • Connect LiveData buildings to your state administration.
  • Depend on totally different styling modifiers.
  • Mix these subjects to create a robust UI!

You’ll construct on the information from the earlier part of the guide by studying new elements of the Jetpack Compose toolkit.

Discover ways to mix totally different small composable capabilities into larger and extra advanced customized UI. Find out how to consider the UI construction earlier than implementing composables.

On this chapter you will learn to fashion your UI elements utilizing Jetpack Compose modifiers. Utilizing them, you will add shapes, colours, borders, paddings and extra!

Discover ways to handle state and construct unidirectional flows of information combining Jetpack Compose, ViewModels and LiveData constructs.

Discover ways to implement Materials Design elements in Jetpack Compose. Dive deeper into state dealing with and implement extra JetNotes options.

Now that you simply’ve constructed your app’s primary UI, it’s time to take it to a different degree. On this part, you’ll apply customized, advanced designs that allow you to stand out from hundreds of comparable apps! This often entails constructing advanced customized elements and making use of animations to symbolize state adjustments when your customers work together with the UI.

Over the following 5 chapters, you’ll dive deeper into the Jetpack Compose API to learn to:

  • Join Compose UI to legacy Android code.
  • React to Compose UI lifecycles.
  • Animate totally different state adjustments and consumer interactions.
  • Methods to use Jetpack Compose along with the outdated View UI Toolkit

Within the course of, you’ll construct an superior app that represents a real-world venture and also you’ll apply some finest practices to enhance the consumer expertise.

Discover ways to reference ConstraintSets in Compose and the right way to use them to place views identical to in a ConstraintLayout.

Discover ways to construct a fancy UI in Jetpack Compose utilizing all the elemental elements and mixing them collectively.

Discover ways to take heed to and react to lifecycle callbacks of Jetpack Compose elements.

Discover ways to animate UI properties utilizing totally different animation options of Jetpack Compose.

Discover ways to use Jetpack Compose in new initiatives and mix it with the View API, or the right way to add Jetpack Compose to present initiatives.

Thus far, you’ve targeted on build up information of how Jetpack Compose works. You now know the right way to construct
a reasonably advanced app utilizing Compose, properly achieved on reaching this! Apps which are of top of the range are constructed this fashion and in addition incorporate two new ideas you’ll study, UI Testing and Accessibility

Within the subsequent two chapters, you’ll dive into every of those subjects and learn to:

  • Construct a set of UI assessments to confirm your Jetpack Compose UI works as anticipated
  • Assist Accessibility options in your app by Compose

These are two chapters you’ll need to learn to take your Compose expertise and consumer expertise to the following degree.

Discover ways to write part degree & display degree UI assessments in Jetpack Compose.

Discover ways to use Jetpack Compose in new initiatives and mix it with the View API, or the right way to add Jetpack Compose to present initiatives.

Nicely achieved on reaching part V of the guide. You now know the right way to construct a top quality app utilizing Jetpack Compose, ensuring it’s examined appropriately by way of UI Testing, and at last levaging Accessibility options so your app can be utilized by a big viewers.

On this part you’ll take a look at a brand new space of Compose being created referred to as Jetpack Look, a brand new solution to construct Widgets utilizing Compose. You’ll additionally take a look at the right way to maintain your Jetpack Compose information upto date with the most recent releases.

By the top of the part you’ll be taught:

  • What Jetpack Look is and construct a Widget utilizing it
  • How vital Jetpack Compose is to the Developer neighborhood.

Discover ways to use Jetpack Compose in new initiatives and mix it with the View API, or the right way to add Jetpack Compose to present initiatives.

Be taught concerning the all assets you should use to remain updated with every little thing happening within the Jetpack Compose ecosystem.

This supplementary part is for appendices to accompany the guide. On this part there’s a useful set of comparisions of UI elements between the outdated UI Toolkit and Jetpack Compose. Use this if you wish to have an thought what like for like elements exist.


Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button