This ebook is for intermediate Android builders, who need to broaden 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 effectively 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 similar 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 ebook, you’ll learn to construct a robust app utilizing Jetpack Compose, learn how to fashion your apps utilizing Materials Design, particular animations and state transitions, learn how to use modifiers and way more!
This ebook will serve you as a central level that holds all the knowledge you want…
extra
This part tells you a number of issues it is advisable know earlier than you get began, similar to what {hardware} and software program you’ll want, the place to search out the challenge information for this ebook, and extra.
Android UI Toolkit is over 10 years outdated now! Over time, it has obtained quite a few updates by way of performance, kinds of UI parts it gives and optimizations. Nonetheless, due to the best way the UI staff initially developed the toolkit, it additionally grew in complexity and the quantity of code for even the best of parts.
Lastly, in 2020, a miracle occurred: Jetpack Compose. The brand new UI toolkit was introduced and began being severely developed by Google. Jetpack Compose is a brand new and recent toolkit, constructed fully in Kotlin, that provides a clear and declarative solution to develop customized parts and delightful interfaces.
On this part, you’ll study all about:
- The basic parts Jetpack Compose gives.
- Easy methods to construct widespread person interface parts similar to containers, navigation controls and lists.
Within the following 4 chapters, you’ll dive deep into the API and study a lot about this glorious new UI toolkit.
Over time, the Android UI toolkit has been developed to supply a number of
completely different approaches in relation to writing person interface code. From creating
a totally programmatic interface or writing XML-powered layouts, to utilizing completely different
libraries with customized DSLs, there have been many options to the identical concern of
reusability, scalability and efficiency. Evaluation legacy methods of writing UI code,
and discover the brand new and superior UI toolkit referred to as Jetpack Compose.
Be taught extra in regards to the principle of composable features by making an attempt out the
fundamental Jetpack Compose parts. Every composable perform has a code pattern and is proven contained in the app.
The chapter covers the speculation behind composable layouts and directions on learn how to use these layouts to group fundamental parts right into a extra complicated UI.
This chapter covers the speculation behind scrollable containers and constructing dynamic horizontal and vertical lists in Jetpack Compose.
When engaged on apps and person interfaces, it’s not solely necessary to know what every bit of the interface ought to be, but additionally how all these items come collectively to construct a fantastic and fully-functional design that’ll wow your customers.
Now that you simply’ve learnt the fundamentals of Jetpack Compose and its elementary UI parts, you’re able to dive deeper into constructing customized Compose parts, managing their state in a performant method and styling them utilizing modifiers and built-in Materials Design options.
Over the subsequent 4 chapters, you’ll learn to:
- Connect LiveData constructions to your state administration.
- Depend on completely different styling modifiers.
- Mix these matters to create a robust UI!
You’ll construct on the information from the earlier part of the ebook by studying new components of the Jetpack Compose toolkit.
Discover ways to mix completely different small composable features into greater and extra complicated customized UI. Learn the way to consider the UI construction earlier than implementing composables.
On this chapter you may learn to fashion your UI parts utilizing Jetpack Compose modifiers. Utilizing them, you may 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 parts in Jetpack Compose. Dive deeper into state dealing with and implement extra JetNotes options.
Now that you simply’ve constructed your app’s fundamental UI, it’s time to take it to a different degree. On this part, you’ll apply customized, complicated designs that aid you stand out from 1000’s of comparable apps! This normally includes constructing complicated customized parts and making use of animations to signify state modifications when your customers work together with the UI.
Over the subsequent 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 completely different state modifications and person interactions.
- Easy 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 challenge and also you’ll apply some greatest practices to enhance the person expertise.
Discover ways to reference ConstraintSets in Compose and learn how to use them to place views similar to in a ConstraintLayout.
Discover ways to construct a posh UI in Jetpack Compose utilizing all the elemental parts and mixing them collectively.
Discover ways to take heed to and react to lifecycle callbacks of Jetpack Compose parts.
Discover ways to animate UI properties utilizing completely different animation options of Jetpack Compose.
Discover ways to use Jetpack Compose in new tasks and mix it with the View API, or learn how to add Jetpack Compose to current tasks.
To date, you’ve targeted on build up information of how Jetpack Compose works. You now know learn how to construct
a reasonably complicated app utilizing Compose, effectively finished on attaining this! Apps which can be of top quality are constructed this manner and likewise incorporate two new ideas you’ll find out about, UI Testing and Accessibility
Within the subsequent two chapters, you’ll dive into every of those matters and learn to:
- Construct a collection of UI exams to confirm your Jetpack Compose UI works as anticipated
- Assist Accessibility options in your app by way of Compose
These are two chapters you’re going to wish to learn to take your Compose expertise and person expertise to the subsequent degree.
Discover ways to write part degree & display degree UI exams in Jetpack Compose.
Discover ways to use Jetpack Compose in new tasks and mix it with the View API, or learn how to add Jetpack Compose to current tasks.
Nicely finished on reaching part V of the ebook. You now know learn how to construct a top quality app utilizing Jetpack Compose, ensuring it’s examined appropriately by way of UI Testing, and eventually 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 learn how to preserve your Jetpack Compose information upto date with the newest releases.
By the tip of the part you’ll study:
- What Jetpack Look is and construct a Widget utilizing it
- How important Jetpack Compose is to the Developer neighborhood.
Discover ways to use Jetpack Compose in new tasks and mix it with the View API, or learn how to add Jetpack Compose to current tasks.
Be taught in regards to the all sources you need to use to remain updated with every part happening within the Jetpack Compose ecosystem.
This supplementary part is for appendices to accompany the ebook. On this part there’s a helpful set of comparisions of UI parts between the outdated UI Toolkit and Jetpack Compose. Use this if you wish to have an concept what like for like parts exist.