This is the code repository for Android UI Development with Jetpack Compose, published by Packt.
Bring declarative and native UIs to life quickly and easily on Android using Jetpack Compose
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.
This book covers the following exciting features:
- 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
If you feel this book is for you, get your copy today!
All of the code is organized into folders. For example, Chapter02.
The code will look like the following:
fun factorialAsString(n: Int): String {
var result = 1L
for (i in 1..n) {
result *= i
}
return "$n! = $result"
}
Following is what you need for this book: 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.
With the following software and hardware list you can run all code files present in the book (Chapter 1-10).
Chapter | Software/Hardware required | OS required |
---|---|---|
1-10 | Android Studio Artic Fox | Windows, Mac OS X, and Linux |
We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.
Like any other software, Jetpack Compose evolves. To make sure that you always have a version of the code that reflects the printed version of the book (compose_1.0
), and one that uses the latest stable version (compose_1.2
), we maintain several branches:
Click on the following link to see the Code in Action:
- Page 141 (Paragraph 3, Line 3): android:the"e="@styl"/..." should be android:theme="@style/...".
Thomas Künneth is a Google Developer Expert for Android and has been a speaker and panelist at multiple international conferences about Android. His first Android app, published in 2010, has more than 100,000 downloads. Currently, Thomas works as a senior Android developer at Snapp Mobile. He has authored countless articles as well as one of the top-selling German Android books (currently in its sixth edition). He has also frequently contributed to various open source projects.
If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.