Modern Android - Getting Started with Jetpack Compose
Jetpack Compose is Android's modern toolkit for building native UIs.
Build apps quickly and vibrantly with less code, powerful tools, and intuitive Kotlin APIs.
Writing an example from 《Oh Jun-seok's Android Survival Coding Kotlin》 using Compose
How to write a ViewModel to work with Compose
With Jetpack Compose Creating a more modern Android UI
Why Jetpack Compose ?
What challenges does traditional Android development face? Writing abstract adapters, complex framework code, the challenges of React app development... Compose is a library that has put a lot of effort into improving these areas. It makes building native Android apps faster and easier.
Complete UI with just a few lines of code
Let's take the example of creating a scrollable list . Creating a list with traditional Android code requires a tremendous amount of code and time, just for writing the adapter and RecyclerView.
Existing Android list code
But with Compose, you only need to write a few lines of code.
List code in Jetpack Compose
Using Compose like this dramatically speeds up development . It also ensures a clear separation between UI and business logic . This declarative UI approach has already been proven in other platforms and frameworks (Flutter, Swift UI), and will likely become essential for Android development going forward.
Background of lecture planning
Although the official version of Compose has been released, many people are still struggling to get started because they are unfamiliar with it, lack interest, or lack reference materials. This course is designed to serve as a reference for those who want to get started with Compose.
In a more modern way Building an Android UI
This course will recreate examples from "Oh Jun-seok's Android Survival Coding: Kotlin" using Compose. This process will demonstrate how existing technologies can be implemented in Compose. While reading the book may be helpful for taking this course, it isn't required. Anyone with a background in the subject matter covered in the book will likely find it helpful.
Course target audience
To take this course, you should already have some basic knowledge of Android development . If you don't have any Android development experience or are unfamiliar with Kotlin syntax, this course will be difficult to follow. At the very least, you should have experience writing and studying a simple app in Kotlin to understand the course content.
Lecture Features
This course won't delve into the in-depth details of Compose. By rewriting eight examples from "Oh Jun-seok's Android Survival Coding: Kotlin," using Compose, you'll learn how to adapt existing methods to Compose. You'll acquire the necessary knowledge as you go through the examples.
Learning by example Jetpack Compose
In this course, you will first learn the basics of Compose and then learn how to use Compose through examples. Here's what you can learn from each example:
BMI calculator Screen transition (Navigation)
stopwatch Utilizing Timer, ViewModel
My own web browser Composable WebView
electronic photo frame Screen left and right scrolling, scroll animation
spirit level Canvas, utilizing the accelerometer sensor
xylophone Easily create sound playback and looping UI
Gps Map Google Maps, location information, drawing a route on a map
TodoList MVVM pattern, Room
Expected questions Q&A
Q. I'm a beginner in Android. Can I still take this course?
If you've studied Kotlin syntax, you can take this course. Compose is a new skill that you can learn even if you're completely unfamiliar with existing Android development methods. However, I recommend taking the course after having some basic knowledge of the grammar.
Q. Is there any way to find out how the lecture will proceed before taking it?
This course offers a free BMI calculator example. Before taking the course, try the free lecture. If you find it appealing, you can then register for the course.
Q. Is the source code used in the lecture provided?
All the source code covered in the lecture is provided, and the source code for the flashlight example mentioned in "Oh Jun-seok's Android Survival Coding Kotlin" is also provided, although it is not covered in the lecture.
Recommended for these people
Who is this course right for?
Anyone who has learned Kotlin grammar
Anyone who has experience developing Android and is interested in Compose
Anyone who wants to learn new ways of developing apps
Those who have read "Oh Jun-seok's Android Survival Coding Kotlin Edition"
Those who took the course ‘Modern Android - Using Kotlin and Jetpack’
Cảm ơn vì bài giảng hay.
Tôi nghĩ nó đủ tốt cho một bài giảng nhập môn vì nó giải thích thông qua thực hành.
Nó đã giúp tôi rất nhiều trong việc hiểu nội dung tổng quan của Compose.
Cảm ơn bạn đã tạo ra một bài giảng tuyệt vời.
Đây là lần đầu tiên tôi sử dụng Android.
Là một nhà phát triển phần mềm, tôi biết ngữ pháp Kotlin.
Giống như tôi, Compose và Android
Có vẻ như đây là bài giảng mà ngay cả người mới bắt đầu cũng có thể nghe mà không ngần ngại.
Một điều khiến tôi hơi thất vọng là
Tôi nghĩ rằng việc áp dụng vào thực tế có thể hơi khó khăn.
(Có lẽ vì đây là lớp dành cho người mới bắt đầu.)
Bạn có dự định mở khóa học trung cấp nào không?
Tôi muốn trải nghiệm một bài giảng gần với nguồn thông tin thực tế.
Hiện tại tôi đang giảng dạy tại Học viện Thanh niên Sắc mầm của Thành phố Seoul. Đây là khóa đào tạo dành cho những người chưa có việc làm và khóa tiếp theo sẽ diễn ra vào năm sau. Nếu bạn có bất kỳ thắc mắc nào về khóa học trực tiếp, vui lòng gửi email đến tôi (junsuk.oh@survivalcoding.com) để tôi giải đáp chi tiết.
Thật vui khi có thể tìm hiểu về Compose mặc dù đã muộn.
Tuy nhiên, đối với Scaffold và đặc biệt là snackbar, nó thực sự hoạt động rất hiệu quả bằng cách áp dụng các phần phụ thuộc mới nhất ^^;;
Mặc dù phần đó hơi thất vọng một chút nhưng nhìn chung đó là một bài giảng rất có giá trị.