Kotlin for Android Developers



Download 1,04 Mb.
Pdf ko'rish
bet125/125
Sana11.08.2021
Hajmi1,04 Mb.
#144654
1   ...   117   118   119   120   121   122   123   124   125
Bog'liq
Kotlin for Android Developers Learn Kotlin the Easy Way While Developing an Android App ( PDFDrive )


2
#ff212121
3
@android:color/black
4

Document Outline

  • Table of Contents
  • I. About this book
  • II. Is this book for you?
  • III. About the author
  • 1 Introduction
    • 1.1 What is Kotlin?
    • 1.2 What do we get with Kotlin?
  • 2 Getting ready
    • 2.1 Android Studio
    • 2.2 Install Kotlin plugin
  • 3 Creating a new project
    • 3.1 Create the project in Android Studio
    • 3.2 Configure Gradle
    • 3.3 Convert MainActivity to Kotlin code
    • 3.4 Test that everything works
  • 4 Classes and functions
    • 4.1 How to declare a class
    • 4.2 Class inheritance
    • 4.3 Functions
    • 4.4 Constructor and functions parameters
  • 5 Writing your first class
    • 5.1 Creating the layout
    • 5.2 The Recycler Adapter
  • 6 Variables and properties
    • 6.1 Basic types
    • 6.2 Variables
    • 6.3 Properties
  • 7 Anko and Extension Functions
    • 7.1 What is Anko?
    • 7.2 Start using Anko
    • 7.3 Extension functions
  • 8 Retrieving data from API
    • 8.1 Performing a request
    • 8.2 Performing the request out of the main thread
  • 9 Data Classes
  • 10 Parsing data
    • 10.1 Converting json to data classes
    • 10.2 Shaping the domain layer
    • 10.3 Drawing the data in the UI
  • 11 Operator overloading
    • 11.1 Operators tables
    • 11.2 The example
    • 11.3 Operators in extension functions
  • 12 Making the forecast list clickable
  • 13 Lambdas
    • 13.1 Simplifying setOnClickListener()
    • 13.2 Click listener for ForecastListAdapter
    • 13.3 Extending the language
  • 14 Visibility Modifiers
    • 14.1 Modifiers
    • 14.2 Constructors
    • 14.3 Revising our code
  • 15 Kotlin Android Extensions
    • 15.1 How to use Kotlin Android Extensions
    • 15.2 Refactoring our code
  • 16 Application Singleton and Delegated Properties
    • 16.1 Application Singleton
    • 16.2 Delegated Properties
    • 16.3 Standard Delegates
    • 16.4 How to create a custom delegate
    • 16.5 Reimplementing App Singleton
  • 17 Creating an SQLiteOpenHelper
    • 17.1 ManagedSqliteOpenHelper
    • 17.2 Tables definition
    • 17.3 Implementing SqliteOpenHelper
    • 17.4 Dependency injection
  • 18 Collections and functional operations
    • 18.1 Aggregate operations
    • 18.2 Filtering operations
    • 18.3 Mapping operations
    • 18.4 Elements operations
    • 18.5 Generation operations
    • 18.6 Ordering operations
  • 19 Saving and requesting data from database
    • 19.1 Creating database model classes
    • 19.2 Writing and requesting data
  • 20 Null safety in Kotlin
    • 20.1 How Null types work
    • 20.2 Nullity and Java libraries
  • 21 Creating the business logic to data access
  • 22. Flow control and ranges
    • 22.1 If Expression
    • 22.2 When expression
    • 22.3 For loops
    • 22.4 While and do/while loops
    • 22.5 Ranges
  • 23 Creating a Detail Activity
    • 23.1 Preparing the request
    • 23.2 Providing a new activity
    • 23.3 Start an activity: reified functions
  • 24 Interfaces and Delegation
  • 25 Generics
    • 25.1 Basics
    • 25.2 Variance
    • 25.3 Generics examples
  • 26 Settings Screen
    • 26.1 Creating the settings activity
    • 26.2 Accessing Shared Preferences
    • 26.3 Generic preference delegate
  • 27 Testing your App
    • 27.1 Unit testing
    • 27.2 Instrumentation tests
  • 28 Extra concepts
    • 28.1 Nested classes
    • 28.2 Enum classes
    • 28.3 Sealed classes
    • 28.4 Exceptions
  • 29 Conclusion

Download 1,04 Mb.

Do'stlaringiz bilan baham:
1   ...   117   118   119   120   121   122   123   124   125




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish