|
Pro Android with Kotlin@de android telegram Pro Android with Kotlin Developing Modern Mobilexi
Table of Contents
Context Menu�������������������������������������������������������������������������������������������������������������������������������������� 245
Contextual Action Mode ���������������������������������������������������������������������������������������������������������������������� 246
Pop-up Menus ������������������������������������������������������������������������������������������������������������������������������������ 246
Progress Bars ��������������������������������������������������������������������������������������������������������������� 247
Working with Fragments ���������������������������������������������������������������������������������������������� 248
Creating Fragments ���������������������������������������������������������������������������������������������������������������������������� 248
Handling Fragments from Activities ��������������������������������������������������������������������������������������������������� 249
Communicating with Fragments �������������������������������������������������������������������������������������������������������� 250
App Widgets ����������������������������������������������������������������������������������������������������������������� 250
Drag and Drop �������������������������������������������������������������������������������������������������������������� 253
Defining Drag Data ����������������������������������������������������������������������������������������������������������������������������� 254
Defining a Drag Shadow ��������������������������������������������������������������������������������������������������������������������� 254
Starting a Drag ����������������������������������������������������������������������������������������������������������������������������������� 255
Listening to Drag Events ��������������������������������������������������������������������������������������������������������������������� 256
Multitouch �������������������������������������������������������������������������������������������������������������������� 258
Picture-in-Picture Mode ����������������������������������������������������������������������������������������������� 259
Text to Speech �������������������������������������������������������������������������������������������������������������� 259
■
Chapter 10: Development ���������������������������������������������������������������������������������� 261
Writing Reusable Libraries in Kotlin ����������������������������������������������������������������������������� 261
Starting a Library Module ������������������������������������������������������������������������������������������������������������������� 261
Creating the Library ���������������������������������������������������������������������������������������������������������������������������� 262
Testing the Library ������������������������������������������������������������������������������������������������������������������������������ 263
Using the Library �������������������������������������������������������������������������������������������������������������������������������� 264
Publishing the Library ������������������������������������������������������������������������������������������������������������������������� 264
Advanced Listeners Using Kotlin ���������������������������������������������������������������������������������� 265
Multithreading �������������������������������������������������������������������������������������������������������������� 266
Compatibility Libraries ������������������������������������������������������������������������������������������������� 268
Kotlin Best Practices ���������������������������������������������������������������������������������������������������� 270
Functional Programming �������������������������������������������������������������������������������������������������������������������� 271
Top-Level Functions and Data ������������������������������������������������������������������������������������������������������������ 272
Class Extensions ��������������������������������������������������������������������������������������������������������������������������������� 273
|
|
|