Kotlin for Android Developers
tải về
1.04 Mb.
Chế độ xem pdf
trang
4/79
Chuyển đổi dữ liệu
01.11.2023
Kích
1.04 Mb.
#55505
1
2
3
4
5
6
7
8
9
...
79
kotlin-for-android-developers-Ve2A1vRFHnmqGFAn
Điều hướng trang này:
11 Operator overloading
12 Making the forecast list clickable
14 Visibility Modifiers
15 Kotlin Android Extensions
10 Parsing data
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
33
10.1 Converting json to data classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
10.2 Shaping the domain layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
10.3 Drawing the data in the UI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
11 Operator overloading
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
38
11.1 Operators tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
11.2 The example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
11.3 Operators in extension functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
12 Making the forecast list clickable
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
41
13 Lambdas
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
46
13.1 Simplifying setOnClickListener() . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
13.2 Click listener for ForecastListAdapter . . . . . . . . . . . . . . . . . . . . . . . . . . 47
13.3 Extending the language . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
14 Visibility Modifiers
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
50
14.1 Modifiers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
14.2 Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
14.3 Revising our code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
15 Kotlin Android Extensions
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
52
15.1 How to use Kotlin Android Extensions . . . . . . . . . . . . . . . . . . . . . . . . . 52
15.2 Refactoring our code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
tải về
1.04 Mb.
Chia sẻ với bạn bè của bạn:
1
2
3
4
5
6
7
8
9
...
79
Cơ sở dữ liệu được bảo vệ bởi bản quyền ©hocday.com 2024
được sử dụng cho việc quản lý
Quê hương
BÁO CÁO
Tài liệu