Jetpack Compose 1. 6 Essentials Developing Android Apps with Jetpack Compose 1. 6, Android Studio, and Kotlin
Jetpack Compose 1.6 Essentials is a comprehensive guide that teaches you how to create Android applications using Jetpack Compose 1.6, Android Studio, Material Design 3, and the Kotlin programming language, with detailed tutorials included throughout the book to help you put theory into practice.
Uložené v:
| Hlavný autor: | |
|---|---|
| Médium: | E-kniha |
| Jazyk: | English |
| Vydavateľské údaje: |
Cary
Payload Media
2024
|
| Vydanie: | 1 |
| ISBN: | 9781951442903, 1951442903 |
| On-line prístup: | Získať plný text |
| Tagy: |
Pridať tag
Žiadne tagy, Buďte prvý, kto otaguje tento záznam!
|
Obsah:
- 9.9 Quick Documentation Lookup -- 9.10 Code Reformatting -- 9.11 Finding Sample Code -- 9.12 Live Templates -- 9.13 Summary -- 10. An Overview of the Android Architecture -- 10.1 The Android Software Stack -- 10.2 The Linux Kernel -- 10.3 Hardware Abstraction Layer -- 10.4 Android Runtime - ART -- 10.5 Android Libraries -- 10.5.1 C/C++ Libraries -- 10.6 Application Framework -- 10.7 Applications -- 10.8 Summary -- 11. An Introduction to Kotlin -- 11.1 What is Kotlin? -- 11.2 Kotlin and Java -- 11.3 Converting from Java to Kotlin -- 11.4 Kotlin and Android Studio -- 11.5 Experimenting with Kotlin -- 11.6 Semi-colons in Kotlin -- 11.7 Summary -- 12. Kotlin Data Types, Variables and Nullability -- 12.1 Kotlin data types -- 12.1.1 Integer data types -- 12.1.2 Floating point data types -- 12.1.3 Boolean data type -- 12.1.4 Character data type -- 12.1.5 String data type -- 12.1.6 Escape sequences -- 12.2 Mutable variables -- 12.3 Immutable variables -- 12.4 Declaring mutable and immutable variables -- 12.5 Data types are objects -- 12.6 Type annotations and type inference -- 12.7 Nullable type -- 12.8 The safe call operator -- 12.9 Not-null assertion -- 12.10 Nullable types and the let function -- 12.11 Late initialization (lateinit) -- 12.12 The Elvis operator -- 12.13 Type casting and type checking -- 12.14 Summary -- 13. Kotlin Operators and Expressions -- 13.1 Expression syntax in Kotlin -- 13.2 The Basic assignment operator -- 13.3 Kotlin arithmetic operators -- 13.4 Augmented assignment operators -- 13.5 Increment and decrement operators -- 13.6 Equality operators -- 13.7 Boolean logical operators -- 13.8 Range operator -- 13.9 Bitwise operators -- 13.9.1 Bitwise inversion -- 13.9.2 Bitwise AND -- 13.9.3 Bitwise OR -- 13.9.4 Bitwise XOR -- 13.9.5 Bitwise left shift -- 13.9.6 Bitwise right shift -- 13.10 Summary -- 14. Kotlin Control Flow
- 19.1 Library and Plugin Dependencies -- 19.2 Project Gradle Build File -- 19.3 Module Gradle Build Files -- 19.4 Version Catalog File -- 19.5 Adding Dependencies -- 19.6 Library Updates -- 19.7 Summary -- 20. Composable Functions Overview -- 20.1 What is a composable function? -- 20.2 Stateful vs. stateless composables -- 20.3 Composable function syntax -- 20.4 Foundation and Material composables -- 20.5 Summary -- 21. An Overview of Compose State and Recomposition -- 21.1 The basics of state -- 21.2 Introducing recomposition -- 21.3 Creating the StateExample project -- 21.4 Declaring state in a composable -- 21.5 Unidirectional data flow -- 21.6 State hoisting -- 21.7 Saving state through configuration changes -- 21.8 Summary -- 22. An Introduction to Composition Local -- 22.1 Understanding CompositionLocal -- 22.2 Using CompositionLocal -- 22.3 Creating the CompLocalDemo project -- 22.4 Designing the layout -- 22.5 Adding the CompositionLocal state -- 22.6 Accessing the CompositionLocal state -- 22.7 Testing the design -- 22.8 Summary -- 23. An Overview of Compose Slot APIs -- 23.1 Understanding slot APIs -- 23.2 Declaring a slot API -- 23.3 Calling slot API composables -- 23.4 Summary -- 24. A Compose Slot API Tutorial -- 24.1 About the project -- 24.2 Creating the SlotApiDemo project -- 24.3 Preparing the MainActivity class file -- 24.4 Creating the MainScreen composable -- 24.5 Adding the ScreenContent composable -- 24.6 Creating the Checkbox composable -- 24.7 Implementing the ScreenContent slot API -- 24.8 Adding an Image drawable resource -- 24.9 Coding the TitleImage composable -- 24.10 Completing the MainScreen composable -- 24.11 Previewing the project -- 24.12 Summary -- 25. Using Modifiers in Compose -- 25.1 An overview of modifiers -- 25.2 Creating the ModifierDemo project -- 25.3 Creating a modifier -- 25.4 Modifier ordering
- 14.1 Looping control flow -- 14.1.1 The Kotlin for-in Statement -- 14.1.2 The while loop -- 14.1.3 The do ... while loop -- 14.1.4 Breaking from Loops -- 14.1.5 The continue statement -- 14.1.6 Break and continue labels -- 14.2 Conditional control flow -- 14.2.1 Using the if expressions -- 14.2.2 Using if ... else … expressions -- 14.2.3 Using if ... else if ... Expressions -- 14.2.4 Using the when statement -- 14.3 Summary -- 15. An Overview of Kotlin Functions and Lambdas -- 15.1 What is a function? -- 15.2 How to declare a Kotlin function -- 15.3 Calling a Kotlin function -- 15.4 Single expression functions -- 15.5 Local functions -- 15.6 Handling return values -- 15.7 Declaring default function parameters -- 15.8 Variable number of function parameters -- 15.9 Lambda expressions -- 15.10 Higher-order functions -- 15.11 Summary -- 16. The Basics of Object-Oriented Programming in Kotlin -- 16.1 What is an object? -- 16.2 What is a class? -- 16.3 Declaring a Kotlin class -- 16.4 Adding properties to a class -- 16.5 Defining methods -- 16.6 Declaring and initializing a class instance -- 16.7 Primary and secondary constructors -- 16.8 Initializer blocks -- 16.9 Calling methods and accessing properties -- 16.10 Custom accessors -- 16.11 Nested and inner classes -- 16.12 Companion objects -- 16.13 Summary -- 17. An Introduction to Kotlin Inheritance and Subclassing -- 17.1 Inheritance, classes, and subclasses -- 17.2 Subclassing syntax -- 17.3 A Kotlin inheritance example -- 17.4 Extending the functionality of a subclass -- 17.5 Overriding inherited methods -- 17.6 Adding a custom secondary constructor -- 17.7 Using the SavingsAccount class -- 17.8 Summary -- 18. An Overview of Compose -- 18.1 Development before Compose -- 18.2 Compose declarative syntax -- 18.3 Compose is data-driven -- 18.4 Summary -- 19. A Guide to Gradle Version Catalogs
- Intro -- 1. Start Here -- 1.1 For Kotlin programmers -- 1.2 For new Kotlin programmers -- 1.3 Downloading the code samples -- 1.4 Feedback -- 1.5 Errata -- 1.6 Find more books -- 1.7 Authors wanted -- 2. Setting up an Android Studio Development Environment -- 2.1 System requirements -- 2.2 Downloading the Android Studio package -- 2.3 Installing Android Studio -- 2.3.1 Installation on Windows -- 2.3.2 Installation on macOS -- 2.3.3 Installation on Linux -- 2.4 The Android Studio setup wizard -- 2.5 Installing additional Android SDK packages -- 2.6 Installing the Android SDK Command-line Tools -- 2.6.1 Windows 8.1 -- 2.6.2 Windows 10 -- 2.6.3 Windows 11 -- 2.6.4 Linux -- 2.6.5 macOS -- 2.7 Android Studio memory management -- 2.8 Updating Android Studio and the SDK -- 2.9 Summary -- 3. A Compose Project Overview -- 3.1 About the project -- 3.2 Creating the project -- 3.3 Creating an activity -- 3.4 Defining the project and SDK settings -- 3.5 Enabling the New Android Studio UI -- 3.6 Previewing the example project -- 3.7 Reviewing the main activity -- 3.8 Preview updates -- 3.9 Bill of Materials and the Compose version -- 3.10 Summary -- 4. An Example Compose Project -- 4.1 Getting started -- 4.2 Removing the template Code -- 4.3 The Composable hierarchy -- 4.4 Adding the DemoText composable -- 4.5 Previewing the DemoText composable -- 4.6 Adding the DemoSlider composable -- 4.7 Adding the DemoScreen composable -- 4.8 Previewing the DemoScreen composable -- 4.9 Adjusting preview settings -- 4.10 Testing in interactive mode -- 4.11 Completing the project -- 4.12 Summary -- 5. Creating an Android Virtual Device (AVD) in Android Studio -- 5.1 About Android Virtual Devices -- 5.2 Starting the Emulator -- 5.3 Running the Application in the AVD -- 5.4 Real-time updates with Live Edit -- 5.5 Running on Multiple Devices
- 5.6 Stopping a Running Application -- 5.7 Supporting Dark Theme -- 5.8 Running the Emulator in a Separate Window -- 5.9 Removing the Device Frame -- 5.10 Summary -- 6. Using and Configuring the Android Studio AVD Emulator -- 6.1 The Emulator Environment -- 6.2 Emulator Toolbar Options -- 6.3 Working in Zoom Mode -- 6.4 Resizing the Emulator Window -- 6.5 Extended Control Options -- 6.5.1 Location -- 6.5.2 Displays -- 6.5.3 Cellular -- 6.5.4 Battery -- 6.5.5 Camera -- 6.5.6 Phone -- 6.5.7 Directional Pad -- 6.5.8 Microphone -- 6.5.9 Fingerprint -- 6.5.10 Virtual Sensors -- 6.5.11 Snapshots -- 6.5.12 Record and Playback -- 6.5.13 Google Play -- 6.5.14 Settings -- 6.5.15 Help -- 6.6 Working with Snapshots -- 6.7 Configuring Fingerprint Emulation -- 6.8 The Emulator in Tool Window Mode -- 6.9 Creating a Resizable Emulator -- 6.10 Summary -- 7. A Tour of the Android Studio User Interface -- 7.1 The Welcome Screen -- 7.2 The Menu Bar -- 7.3 The Main Window -- 7.4 The Tool Windows -- 7.5 The Tool Window Menus -- 7.6 Android Studio Keyboard Shortcuts -- 7.7 Switcher and Recent Files Navigation -- 7.8 Changing the Android Studio Theme -- 7.9 Summary -- 8. Testing Android Studio Apps on a Physical Android Device -- 8.1 An Overview of the Android Debug Bridge (ADB) -- 8.2 Enabling USB Debugging ADB on Android Devices -- 8.2.1 macOS ADB Configuration -- 8.2.2 Windows ADB Configuration -- 8.2.3 Linux adb Configuration -- 8.3 Resolving USB Connection Issues -- 8.4 Enabling Wireless Debugging on Android Devices -- 8.5 Testing the adb Connection -- 8.6 Device Mirroring -- 8.7 Summary -- 9. The Basics of the Android Studio Code Editor -- 9.1 The Android Studio Editor -- 9.2 Splitting the Editor Window -- 9.3 Code Completion -- 9.4 Statement Completion -- 9.5 Parameter Information -- 9.6 Parameter Name Hints -- 9.7 Code Generation -- 9.8 Code Folding
- 25.5 Adding modifier support to a composable

