ENGLISH

Kotlin for Android Developers Learn Kotlin the easy way while developing an Android App

Book information

Year
2016
Language
english
Format
PDF
Filesize
1 MB (1094698 bytes)
Pages
\152
Time added
2020-07-16 14:06:41

Description

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 9.1 Extra functions 9.2 Copying a data class 9.3 Mapping an object into variables 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 24.1 Interfaces 24.2 Delegation 24.3 Implementing an example in our App 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

Similar books

Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36

2010 · PDF

THE BRITISH ARMY IN INDIA: ITS PRESERVATION BY AN APPROPRIATE CLOTHING, HOUSING, LOCATING, RECREATIVE EMPLOYMENT, AND HOPEFUL ENCOURAGEMENT OF THE TROOPS. with AN APPENDIX ON INDIA : THE CLIMATE OP ITS HILLS ; THE DEVELOPMENT OF ITS RESODRCBS, INDUSTRY, AND ARTS ; THE ADMINISTRATION OF JUSTICE ; THE BLACK ACT ; THE PROGRESS OF CHRISTIANITY ; THE TRAFFIC IN OPIUM ; THE VALUE OF INDIA ; PERMANENT CAUSES OF DISAFFECTION, AND OF THE RECENT REBELLION ; THE TRADITIONARY POLICY; MISGOVERNMENT BY NATIVE RULERS ; ANNEXATIONS OF THEIR TERRITORY, ETC.

1858 · PDF

Idries Shah 27 Books Collection : A Perfumed Scorpion, A Veiled Gazelle, Caravan of Dreams, Darkest England, Destination Mecca, Evenings with Idries Shah, Knowing How to Know, Learning How to Learn, Letters and Lectures of Idries Shah, Neglected aspects of Sufi study, Observations, Oriental Magic, Reflections, Seeker after Truth, Special Illumination, Special Problems in the study of Sufi ideas, Sufi thought and action, Tales of the Dervishes, The Dermis Probe, The Elephant in the Dark, The Englishman Handbook, Idries Shah Antology, The Magic Monastery, The natives are restless, wisdom of the Idiots PDF.

2022 · PDF

The travels of Capts. Lewis and Clarke from St. Louis, by way of the Missouri and Columbia rivers, to the Pacific ocean; performed in the years 1804, 1805 & 1806, by order of the government of the United States. Containing delineations of the manners, customs, religion, &c. of the Indians, comp. from various authentic sources, and original documents, and a summary of the Statistical view of the Indian nations, from the official communication of Meriwether Lewis. Illustrated with a map of the country, inhabited by the western tribes of Indians

1809 · PDF