To get the most out of this book
|
Software/hardware covered in the book |
Operating system requirements |
|
Android Studio Meerkat or later versions |
Windows, macOS, or Linux |
If you are using the digital version of this book, we advise you to type the code yourself or access the code from the book’s GitHub repository (a link is available in the next section). Doing so will help you avoid any potential errors related to the copying and pasting of code.
Download the example code files
The code bundle for the book is hosted on GitHub at https://github.com/PacktPublishing/How-to-Build-Android-Applications-with-Kotlin-Third-Edition. We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing. Check them out!
Download the color images
We also provide a PDF file that has color images of the screenshots/diagrams used in this book. You can download it here: https://packt.link/gbp/9781835882764.
Conventions used
There are a number of text conventions used throughout this book.
CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. For example: “Execute the terraform graph command:”
A block of code is set as follows:
var counter = 0
val mainView = findViewById<ConstraintLayout>(R.id.main)
val counterValue = mainView.findViewById<TextView>(
R.id.counter_value
)
val plusButton = mainView.findViewById<Button>(
R.id.plus
)
val minusButton = mainView.findViewById<Button>(
R.id.minus
)
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
@Composable
fun Employee(employee: EmployeeUiModel) {
Row {
if (employee.imageUrl.isEmpty()) {
Spacer(modifier = Modifier.size(64.dp)
} else {
LoadedImage(
imageUrl = employee.imageUrl,
modifier = Modifier.size(64.dp)
)
}
Column {
Text(text = employee.name)
Text(text = employee.role.label)
}
}
}
Note: Although dependencies in the respective libs.versions.toml files may appear in two lines in the chapters, they should be added as one lines in your code.
Any command-line input or output is written as follows:
set KEYSTORE_PASSWORD=securepassword
Bold: Indicates a new term, an important word, or words that you see on the screen. For instance, words in menus or dialog boxes appear in the text like this. For example: “You will see a window with side tabs and Projects highlighted. Select the New Project option on the right-hand side.”
Warnings or important notes appear like this.
Tips and tricks appear like this.