Ưu đãi trong tuần: Nhập mã UD50 giảm 50k cho đơn từ 300k!
Trang chủ
Menu

Kotlin for Android & Java Developers: Clean Code on Android

Kotlin cho Lập trình viên Android & Java: Viết Code Sạch trên Android

Kotlin cho Lập trình viên Android & Java: Viết Code Sạch trên Android

Trở thành lập trình viên Kotlin chuyên nghiệp và viết code sạch hơn cho ứng dụng Android so với Java, loại bỏ code dư thừa

4.7
(1,751 đánh giá)
8,397 học viên
Giảng viên
Peter Sommerhoff
Phụ đề Việt chất lượng cao Phụ đề tiếng Anh Bán chạy Đánh giá cao
50.000đ 349.000đ -86%
✓ Xem giỏ hàng và thanh toán
Bao gồm phụ đề tiếng Việt, tiếng Anh
9.5 giờ video
106 bài giảng
Truy cập vĩnh viễn
Học trên mọi thiết bị
Cập nhật: 30/05/2026

Bạn sẽ học được gì

Viết code sạch với Kotlin
Loại bỏ các đoạn code rườm rà và lặp lại xung quanh Android APIs
Sử dụng lập trình hàm để viết code ngắn gọn, biểu cảm
Tạo ứng dụng Android với Kotlin
Viết các giao dịch SQLite dễ đọc bằng extension functions trong Kotlin
Sử dụng Kotlin Android Extensions để tránh findViewById()
Tạo nhiều activities, layouts và menus

Yêu cầu

Có kinh nghiệm lập trình (ví dụ: Java)
Ít nhất có một chút kinh nghiệm với Android

Đối tượng phù hợp

Lập trình viên Android
Lập trình viên Java
Bất kỳ ai có kinh nghiệm lập trình muốn học Kotlin cho Android

Nội dung khóa học

10 phần • 105 bài giảng
1 Bạn sẽ học gì trong khóa này
2 Tận dụng tối đa khóa học này!
3 Ai đang sử dụng Kotlin?
1 Giới thiệu
2 Cài đặt Java JDK 8
3 Cài đặt Android Studio
4 Thiết lập dự án trong Android Studio
5 Tổng kết
1 Giới thiệu
2 Biến và Kiểu dữ liệu
3 Null Safety trong Kotlin
4 Câu điều kiện: Biểu thức "if"
5 Câu điều kiện: Biểu thức "when"
6 Collections
7 Vòng lặp "for"
8 Vòng lặp "while"
9 Hàm
10 Chuẩn bị cho Lập trình Kotlin Chuyên sâu (Cài đặt IntelliJ IDEA)
11 Tạo hàm main()
12 Thử thách: Đọc tên người dùng từ Console
13 Thử thách: Sử dụng Collections và Vòng lặp
14 Đối số có tên & Giá trị tham số mặc định
15 Ngoại lệ
16 Tại sao không có Checked Exceptions?
17 Tổng kết
1 Giới thiệu
2 Lập trình hàm là gì?
3 Lập trình hàm II
4 Lambdas & Higher-Order Functions
5 Sử dụng map() và flatMap()
6 Sử dụng take() và drop()
7 Sử dụng zip()
8 Thử thách: Lập trình hàm cho Phân tích Dữ liệu
9 Kết hợp các hàm với nhau
10 Lazy Sequences
11 Case Study: Hiệu suất của Lazy Sequences
12 Code Along: Lazy Sequence vô hạn của tất cả số nguyên tố
13 Sử dụng toán tử "let" cho Scoping và Nullables
14 Sử dụng "with" cho nhiều lệnh gọi trên cùng một đối tượng
15 Sử dụng "use" cho Closeable (giống try-with-resources)
16 Inline Functions
17 Tổng kết
1 Giới thiệu
2 Lớp
3 Thuộc tính với Getters & Setters
4 Constructors chính và phụ
5 Phương thức
6 Extension Functions
7 Data Classes
8 Enums
9 Kế thừa
10 Code Along: Ví dụ về Kế thừa
11 Lớp trừu tượng
12 Giao diện
13 Quy tắc ghi đè
14 Smart Casts
15 Phạm vi truy cập
16 Companion Objects cho thành viên "Static"
17 Object Declarations như Singletons
18 Gói và Nhập khẩu
19 Lớp Generic
20 Hàm Generic
21 Covariance
22 Covariance: Java vs Kotlin
23 Covariance vs Contravariance: "out" và "in"
24 Tổng kết
1 Giới thiệu
2 Tạo dự án ứng dụng
3 Hiểu về các phiên bản Android
4 Tạo CardView Layout và thêm các thành phần UI
5 Sử dụng "Kotlin Android Extensions"
6 Thử thách: Đặt văn bản và nguồn ảnh theo chương trình
7 Giải pháp thử thách
1 Giới thiệu
2 RecyclerView là gì?
3 Tạo Data Class "Habit"
4 Triển khai "HabitsAdapter" - Phần I
5 Triển khai "HabitsAdapter" - Phần II
6 Triển khai "HabitsAdapter" - Phần III
1 Giới thiệu
2 Thêm Menu
3 Thêm Activity thứ hai
4 Sử dụng Intents để chuyển đổi Activities
5 Thử thách: Xây dựng Layout cho Activity
6 Giải pháp thử thách
7 Cho phép người dùng chọn ảnh
8 Nhận ảnh đã chọn (onActivityResult)
9 Hiển thị thông báo lỗi cho người dùng
10 Code Along: Extension Function cho "EditText"
1 Giới thiệu
2 Giới thiệu SQLite
3 Định nghĩa Contracts
4 Triển khai Database Helper
5 Lưu thói quen vào SQLite
6 Triển khai Giao dịch An toàn (hỗ trợ Rollback)
7 Code sạch: Cải thiện Giao dịch trong Kotlin
8 Code sạch: Tiếp tục cải thiện Giao dịch và Hiệu suất
9 Lưu thói quen trong "CreateHabitActivity"
10 Đọc tất cả thói quen từ SQLite
11 Thử thách: Cải thiện SQLiteDatabase.query(...)
12 Giải pháp thử thách
13 Thử thách: Cải thiện Cursor.getString(...)
14 Giải pháp thử thách
15 Thêm tệp vào Thiết bị ảo (Phần bổ sung)
1 Phần thưởng: Đạt đến tiềm năng tối đa của bạn với tư cách là Lập trình viên Phần mềm

Giới thiệu khóa học

  • Learn to use Kotlin the right way to actually improve your Android app code

  • Write null-safe, concise, and readable code in Kotlin using functional and object-oriented concepts

  • Work around unnecessary boilerplate code when using Android APIs (e.g. SQLite) using higher-order extension functions

  • Use Android Studio effectively to speed up your development workflow

  • Get your questions answered along the way should you ever get stuck


Why Take This Course?

I've been involved with Kotlin since late 2015, before it was released in its first stable version. As the instructor of the course "Kotlin for Beginners", I know which topics students are interested in or get stuck with.

My first Kotlin course is recommended from the official Kotlin website and from the official Android website as a resource to learn Kotlin for Android. So you can be sure to get quality teaching here.

After this course, you'll be able to confidently use Kotlin for any kind of project -- but we'll of course apply what we learn to Android app development in this course.


What Makes This Course Special?

Since Google's #IO17 announcement to officially support Kotlin on Android, many new courses on the topic have been released -- which is great because it further helps to spread the language.

What makes this course special is that while most other courses do not teach good coding style, this course will focus on producing clean code and teaches you to make use of Kotlin's amazing features to actually write better code than in Java. This way, you will get a huge benefit using Kotlin instead of Java, e.g. by avoiding boilerplate code around many Android APIs.


What This Course Is NOT

This course is not an Android reference, I assume you already have at least some Android experience. Instead, you'll learn to write cleaner code for your apps by applying Kotlin's powerful language features to avoid unnecessary ceremony around Android APIs. Also, at the end of the course, you'll be able to use Kotlin for any kind of project -- not just for Android apps.


What Students Say About Me (taken from "Kotlin for Beginners")

"TLDR; One of the best Kotlin course for beginners on Udemy! I took some time to write this review and wanted to finish the course THEN watch other courses offered here on Udemy and THEN want to see how good Peter was in teaching me basics of Kotlin so that I can apply the knowledge while writing actual android apps. And I am happy to report that it has helped me immensely. It wouldn't be wrong if I say that the I was easily understanding the WHYs and WHATs even if the teacher wasn't explaining in detail in other courses... Thank you Peter! You have taught me well! [...]"

- Hasaan

 

"Great introduction to Kotlin and programming for beginner programmers!"

- Per-Erik

 


"Easy to follow, instructor goes at a great pace that's friendly for beginners."

- Ronaldo

 

"beyond excellent!!!!"

- Mike

 

"Great start so far. Looking forward to a great course. Best online course I have taken, by far!!"

- James

 


"Found this to be a very good course to get an overview of Kotlin. Everything was explained clearly and the examples and exercises were very helpful. I'm glad that Peter is considering a course for Android using Kotlin since I'm curious about that subject."

- James

 

What You'll Learn

  • How to set up all you need for Android development using Kotlin (e.g. how to install Android Studio)

  • The basics of Kotlin: variables, null safety, immutability, conditionals, loops, functions, exception handling

  • Functional programming in Kotlin: higher-order functions, lambda expressions, lazy evaluation, lazy sequences, the Kotlin standard library

  • Object-oriented programming in Kotlin: all you know from Java + data classes, extension functions, smart casts, object declarations, differences from Java concerning inheritance

  • Android development with Kotlin: creating activities, layouts, menus, click listeners, working around unnecessarily complex Android APIs, improving SQLite transactions with extension functions, avoiding null in your code

 

------

What is Kotlin?

Kotlin is a modern language for the JVM, and the only officially supported language on Android beside Java. It's developed by Jetbrains, the makers of IntelliJ on which Android Studio is based.

Since Google's announcement to officially support Kotlin in 2017, interest in the language has radically increased -- and with it the number of tutorials, courses, books, and also job offers for Kotlin. It's a great time to dive into this modern language and get ahead of other Android developers!

With its modern language design that incorporates industry best practices, Kotlin allows you to write highly expressive, understandable and safe code -- while being 100% interoperable with Java. You can use any Java classes and methods from Kotlin and the other way around.

This courses shows you what language features I mean, and how you can apply them in order to write world-class code.

Khóa học liên quan

Khám phá thêm các khoá học cùng chủ đề

Hiển thị tất cả khoá học Android Development
Hiển thị tất cả khoá học Java
Hiển thị tất cả khoá học Kotlin
Hiển thị tất cả khoá học Mobile App Development
Zalo
Tôi có thể tư vấn khoá học cho bạn 😊