Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Android UI Development with Jetpack Compose
Android UI Development with Jetpack Compose

Android UI Development with Jetpack Compose: Bring declarative and native UIs to life quickly and easily on Android using Jetpack Compose

eBook
AU$49.99 AU$55.99
Paperback
AU$68.99
Subscription
Free Trial
Renews at AU$24.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Android UI Development with Jetpack Compose

Chapter 1: Building Your First Compose App

When Android was introduced more than 10 years ago, it quickly gained popularity among developers because it was incredibly easy to write apps. All you had to do was define the user interface (UI) in an XML file and connect it to your activity. This worked flawlessly because apps were small and developers needed to support just a handful of devices.

So much has changed since then.

With every new platform version, Android gained new features. Through the years, device manufacturers introduced thousands of devices with different screen sizes, pixel densities, and form factors. While Google did its best to keep the Android view system comprehendible, the complexity of apps increased significantly; basic tasks such as implementing scrolling lists or animations require lots of boilerplate code.

It turned out that these problems were not specific to Android. Other platforms and operating systems faced them as well. Most issues stem from how UI toolkits used to work; they follow a so-called imperative approach (which I will explain in Chapter 2, Understanding the Declarative Paradigm). The solution was a paradigm shift. The web framework React was the first to popularize a declarative approach. Other platforms and frameworks (for example, Flutter and SwiftUI) followed.

Jetpack Compose is Google's declarative UI framework for Android. It dramatically simplifies the creation of UIs. As you will surely agree after reading this book, using Jetpack Compose is both easy and fun. But before we dive in, please note that Jetpack Compose is Kotlin-only. This means that all your Compose code will have to be written in Kotlin. To follow this book, you should have a basic understanding of the Kotlin syntax and the functional programming model. If you want to learn more about these topics, please refer to the Further reading section at the end of this chapter.

This chapter covers three main topics:

  • Saying hello to composable functions
  • Using the preview
  • Running a Compose app

I will explain how to build a simple UI with Jetpack Compose. Next, you will learn to use the preview feature in Android Studio and how to run a Compose app. By the end of this chapter, you will have a basic understanding of how composable functions work, how they are integrated into your app, and how your project must be configured in order to use Jetpack Compose.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Understand the difference between the imperative (Android View) and declarative (Jetpack Compose) approach
  • Learn about the structure of a Compose app, built-in Compose UI elements, and core concepts such as state hoisting and composition over inheritance
  • Write, test, and debug composable functions

Description

Jetpack Compose is Android’s new framework for building fast, beautiful, and reliable native user interfaces. It simplifies and significantly accelerates UI development on Android using the declarative approach. This book will help developers to get hands-on with Jetpack Compose and adopt a modern way of building Android applications. The book is not an introduction to Android development, but it will build on your knowledge of how Android apps are developed. Complete with hands-on examples, this easy-to-follow guide will get you up to speed with the fundamentals of Jetpack Compose such as state hoisting, unidirectional data flow, and composition over inheritance and help you build your own Android apps using Compose. You'll also cover concepts such as testing, animation, and interoperability with the existing Android UI toolkit. By the end of the book, you'll be able to write your own Android apps using Jetpack Compose.

Who is this book for?

This book is for any mobile app developer looking to understand the fundamentals of the new Jetpack Compose framework and the benefits of native development. A solid understanding of Android app development, along with some knowledge of the Kotlin programming language, will be beneficial. Basic programming knowledge is necessary to grasp the concepts covered in this book effectively.

What you will learn

  • Gain a solid understanding of the core concepts of Jetpack Compose
  • Develop beautiful, neat, and immersive UI elements that are user friendly, reliable, and performant
  • Build a complete app using Jetpack Compose
  • Add Jetpack Compose to your existing Android applications
  • Test and debug apps that use Jetpack Compose
  • Find out how Jetpack Compose can be used on other platforms

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Feb 21, 2022
Length: 248 pages
Edition : 1st
Language : English
ISBN-13 : 9781801810241
Vendor :
Google
Languages :
Concepts :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Feb 21, 2022
Length: 248 pages
Edition : 1st
Language : English
ISBN-13 : 9781801810241
Vendor :
Google
Languages :
Concepts :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
AU$24.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
AU$249.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just AU$5 each
Feature tick icon Exclusive print discounts
AU$349.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just AU$5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total AU$ 187.97
Android UI Development with Jetpack Compose
AU$68.99
Clean Android Architecture
AU$53.99
Kickstart Modern Android Development with Jetpack and Kotlin
AU$64.99
Total AU$ 187.97 Stars icon

Table of Contents

15 Chapters
Part 1:Fundamentals of Jetpack Compose Chevron down icon Chevron up icon
Chapter 1: Building Your First Compose App Chevron down icon Chevron up icon
Chapter 2: Understanding the Declarative Paradigm Chevron down icon Chevron up icon
Chapter 3: Exploring the Key Principles of Compose Chevron down icon Chevron up icon
Part 2:Building User Interfaces Chevron down icon Chevron up icon
Chapter 4: Laying Out UI Elements Chevron down icon Chevron up icon
Chapter 5: Managing the State of Your Composable Functions Chevron down icon Chevron up icon
Chapter 6: Putting Pieces Together Chevron down icon Chevron up icon
Chapter 7: Tips, Tricks, and Best Practices Chevron down icon Chevron up icon
Part 3:Advanced Topics Chevron down icon Chevron up icon
Chapter 8: Working with Animations Chevron down icon Chevron up icon
Chapter 9: Exploring Interoperability APIs Chevron down icon Chevron up icon
Chapter 10: Testing and Debugging Compose Apps Chevron down icon Chevron up icon
Chapter 11: Conclusion and Next Steps Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.5
(17 Ratings)
5 star 82.4%
4 star 5.9%
3 star 0%
2 star 0%
1 star 11.8%
Filter icon Filter
Top Reviews

Filter reviews by




Roshan Mar 30, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book provides you with a strong comprehension of Android application improvement. It's for any versatile application designer hoping to comprehend the basics of the Jetpack Compose.
Amazon Verified review Amazon
Esaiamutha Mar 30, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Excellent book which helping to get information regarding basics...
Amazon Verified review Amazon
Samuel Stegall Mar 30, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Android UI Development with Jetpack Compose is a great resource for learning Jetpack Compose, Google's new declarative UI library for Android. The book does a great job of covering all of the high-points of things that you would want to learn when covering the different corners of the library. Some important topics covered are state management, themes, animations, and integrating composables with the traditional .xml layout system more commonly found throughout Android apps.If I were to point out flaws in the book, I would focus on two: 1. I think the book's coverage of Material You is a bit lacking. I would have liked to get deeper coverage of this topic, since it is going to be more and more important as more devices adopt Android 12 and beyond. 2. The book may seem a little bit light if you're focusing on just what is in the pages. But fortunately on this second point, if you download the code repos that go along with the book, you can code along and get much more context for the topics being discussed. If you code along, this book jumps to a 5-star book in my opinion. You really get a lot of experience if you code along.This book sits in a special place for me. I'm onboarding to a new mobile development job, and have now read and coded through 4 different Android programming books as a result, two of which cover Jetpack Compose. This app was my final book to go through in my practice, and was also the one that inspired me to create and publish an app to Google Play. Thanks to this book and my studying through it, I am now a published developer on Google Play, and comfortably onboarded into my new mobile developer role. I'm really excited about my job, and I'm very excited to see what new things come from the Android ecosystem.
Amazon Verified review Amazon
Marlonlom Feb 23, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Excelente libro para iniciarse en creación de apps android con jetpack compose, bien estructurado, con ejemplos y texto muy claros para entender el concepto y aplicar compose
Amazon Verified review Amazon
Daniel Butler Feb 21, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This is a very well-structured book and a must-have for Android Developers of all levels looking for a well-rounded overview of Jetpack Compose. The changes that compose bring to Android Development will have a vast impact on how we build apps in the future and I feel that this book covers every area of importance. This book is very concise and the sections are well thought out, this book also contains several tutorial sections which are useful for those that learn by building like me.This book is not purely restricted to building UIs, crucial topics such as navigation with compose, interoperability with the Android View system, testing, and architecture are all covered. After reading this I not only feel more comfortable building new apps with Jetpack Compose but I also now possess further knowledge on how to integrate compose with older projects.This book also does a good job of providing small details such as the specific versions of dependencies and versions of Android Studio used for the tutorials so misconfiguration issues are limited. Another section that I found useful was the one on previews, being able to preview the UI without running the app is a key feature in Jetpack compose and the author does well to explain the common issues with previews and how to get the most out of them. Overall 10/10
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.