Book description
Build smart looking Kotlin apps with UI and functionality for the Android platform
Key Features
- Start your Android programming career, or just have fun publishing apps on Google Play marketplace
- The first-principle introduction to Kotlin through Android, to start building easy-to-use apps
- Learn by example and build four real-world apps and dozens of mini-apps
Book Description
Android is the most popular mobile operating system in the world and Kotlin has been declared by Google as a first-class programming language to build Android apps. With the imminent arrival of the most anticipated Android update, Android 10 (Q), this book gets you started building apps compatible with the latest version of Android.
It adopts a project-style approach, where we focus on teaching the fundamentals of Android app development and the essentials of Kotlin by building three real-world apps and more than a dozen mini-apps. The book begins by giving you a strong grasp of how Kotlin and Android work together before gradually moving onto exploring the various Android APIs for building stunning apps for Android with ease. You will learn to make your apps more presentable using different layouts. You will dive deep into Kotlin programming concepts such as variables, functions, data structures, Object-Oriented code, and how to connect your Kotlin code to the UI. You will learn to add multilingual text so that your app is accessible to millions of more potential users. You will learn how animation, graphics, and sound effects work and are implemented in your Android app.
By the end of the book, you will have sound knowledge about significant Kotlin programming concepts and start building your own fully featured Android apps.
What you will learn
- Learn how Kotlin and Android work together
- Build a graphical drawing app using Object-Oriented Programming (OOP) principles
- Build beautiful, practical layouts using ScrollView, RecyclerView, NavigationView, ViewPager and CardView
- Write Kotlin code to manage an apps' data using different strategies including JSON and the built-in Android SQLite database
- Add user interaction, data captures, sound, and animation to your apps
- Implement dialog boxes to capture input from the user
- Build a simple database app that sorts and stores the user's data
Who this book is for
This book is for people who are new to Kotlin, Android and want to develop Android apps.It also acts as a refresher for those who have some experience in programming with Android and Kotlin.
Table of contents
-
Android Programming with Kotlin for Beginners
- Table of Contents
- Android Programming with Kotlin for Beginners
- Contributors
- Preface
- 1. Getting Started with Android and Kotlin
- 2. Kotlin, XML, and the UI Designer
- 3. Exploring Android Studio and the Project Structure
-
4. Getting Started with Layouts and Material Design
- Material design
- Exploring Android UI design
- Layouts
- Creating the Exploring Layouts project
- Building a menu with LinearLayout
- Wiring up the UI with the Kotlin code (part 1)
- Adding layouts within layouts
- Making the layout look pretty
- Wiring up the UI with the Kotlin code (part 2)
- Building a precise UI with ConstraintLayout
- Laying out data with TableLayout
- Summary
- 5. Beautiful Layouts with CardView and ScrollView
- 6. The Android Lifecycle
- 7. Kotlin Variables, Operators, and Expressions
-
8. Kotlin Decisions and Loops
- Making decisions in Kotlin
- Repeating code with loops
- while loops
- do-while loops
- Ranges
- For loops
- Controlling loops with break and continue
- Sample code
- Summary
- 9. Kotlin Functions
- 10. Object-Oriented Programming
- 11. Inheritance in Kotlin
- 12. Connecting Our Kotlin to the UI and Nullability
-
13. Bringing Android Widgets to Life
- Declaring and initializing the objects from the layout
- Creating UI widgets from pure Kotlin without XML
- Exploring the palette â part 1
- Lambdas
- Exploring the palette â part 2, and more lambdas
- The widget exploration app
- Coding the widget exploration app
- Running the Widget Exploration app
- Converting layouts to ConstraintLayout
- Summary
- 14. Android Dialog Windows
- 15. Handling Data and Generating Random Numbers
-
16. Adapters and Recyclers
- Inner classes
- RecyclerView and RecyclerAdapter
- Adding RecyclerView, RecyclerAdapter, and ArrayList to the Note to Self project
- Running the app
- Frequently asked questions
- Summary
- 17. Data Persistence and Sharing
- 18. Localization
- 19. Animations and Interpolations
- 20. Drawing Graphics
- 21. Threads and Starting the Live Drawing App
- 22. Particle Systems and Handling Screen Touches
- 23. Android Sound Effects and the Spinner Widget
- 24. Design Patterns, Multiple Layouts, and Fragments
- 25. Advanced UI with Paging and Swiping
- 26. Advanced UI with Navigation Drawer and Fragment
- 27. Android Databases
- 28. A Quick Chat Before You Go
- A. Other Book You May Enjoy
- Index
Product information
- Title: Android Programming with Kotlin for Beginners
- Author(s):
- Release date: April 2019
- Publisher(s): Packt Publishing
- ISBN: 9781789615401
You might also like
book
Programming Android with Kotlin
Developing applications for the Android mobile operating system can seem daunting, particularly if it requires learning …
book
Android Studio 4.2 Development Essentials - Kotlin Edition
A hands-on guide to developing Android applications using Android Studio 4.2 and Kotlin Key Features Design …
book
How to Build Android Apps with Kotlin
Master the fundamentals of Android programming and apply your skills to create scalable and reliable apps …
book
Android for Absolute Beginners: Getting Started with Mobile Apps Development Using the Android Java SDK
Get started as a mobile app developer and learn the art and science of Android app …