Posted by Tomáš Mlynarič, Developer Relations Engineer
Max®, which launched within the US on Could 23, 2023, is an enhanced streaming platform from Warner Bros. Discovery, delivering unparalleled high quality content material for everybody within the family. Max builders need to present the most effective UX potential, they usually’re all the time looking for new methods to do this. That’s why Max builders constructed the app utilizing Jetpack Compose, Android’s fashionable declarative toolkit for creating native UI. Constructing Max’s UI with Compose set the app up for long-term success, enabling builders to construct new experiences in a quicker and simpler approach.
Compose streamlines growth
Max is the newest app from Warner Bros. Discovery and builds on the corporate’s prior learnings from HBO Max and discovery+. When Max growth started in late 2022, builders had already used Compose to construct the content material discovery function on discovery+—one in every of its core UI options.
“It was pure to proceed our adoption of Compose to the Max platform,” stated Boris D’Amato, Sr. Employees Software program Engineer at Max.
Given the staff’s earlier expertise utilizing Compose on discovery+, they knew it will streamline growth and enhance the app’s maintainability. Ultimately, constructing Max with Compose lowered the app’s boilerplate code, elevated the re-usability of its UI components, and boosted developer productiveness total.
“Compose considerably lowered the time required to implement UI modifications, fixing the ache level of sustaining a big, advanced UI codebase and making it simpler to iterate on the app’s design and person expertise,” stated Boris.
At the moment, Max’s UI is constructed nearly solely with Compose, and builders estimate that adopting Compose allowed them to implement UI modifications 30% quicker than with Views. Because of the toolkit’s modular nature, builders may construct extremely reusable elements and adapt or mix them to kind new UI components, making a extra cohesive app design.
Extra enhancements with Compose
At the moment, Compose is so integral to Max’s design that the app’s total UI structure is designed particularly to help Compose. For instance, builders constructed a system to dynamically render server-driven, editorially curated content material and user-personalized suggestions with out having to ship a brand new model of the app. To help this technique, builders relied on the most effective practices when architecting Compose apps, leveraging Compose’s sensible recompositioning and skipability for the smoothest expertise potential.
Very like the invention+ platform, Compose can be used for Max’s content material discovery function. This function helps Max serve tailor-made content material to every person primarily based on how they use the app. Because of Compose, it was simple for builders to make sure this function labored as supposed as a result of it allowed them to check every half in manageable segments.
“One of many options most impacted by utilizing Compose was our content material discovery system. Compose enabled us to create a extremely dynamic and interactive interface that adapts in real-time to person context and preferences,” stated Boris.
Adapting to customers’ distinctive wants is one more reason Compose has impressed Max builders. Compose makes it simple to help the various totally different screens and kind elements obtainable in the marketplace in the present day. With the Window measurement courses API, Max can scale its UI in actual time to accommodate display screen measurement and form variations for tablets and foldables.
The longer term with Compose
Since adopting Compose, the Max staff has seen elevated curiosity from potential job candidates enthusiastic about working with the newest Android applied sciences.
“At any time when we point out that Max is constructed utilizing Compose, the thrill within the candidates is palpable. It signifies that we’re investing in maintaining our tech stack up to date and our concentrate on the developer expertise,” stated Boris.
Trying forward, the Max staff plans to lean additional into its Compose codebase and make much more use of the toolkit’s options, like animation APIs, predictive gestures, and widgets.
“I completely advocate Jetpack Compose. Compose’s declarative method to UI growth permits for a extra intuitive and environment friendly design course of, making implementing advanced UIs and animations simple. When you attempt Compose, there’s no going again,” stated Boris.
Get began
Optimize your UI growth with Jetpack Compose.