更新时间:2021-07-30 10:23:54
封面
版权页
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. Working with Xamarin.Android
Introduction
Creating Xamarin.Android projects
Creating user interface layouts
Creating an options menu
Supporting previous Android versions
Adding an action bar
Navigating with the action bar
Adding action bar action items
Creating contextual action mode menu
Creating contextual action mode menus
Sharing code with other platforms
Chapter 2. Showing Views and Handling Fragments
Using custom views with layouts
Creating and using fragments
Preserving view and fragment state
Navigating between fragments
Fragments and the action bar
Animating fragment navigation
Animating view and object properties
Animating views on the UI
Adding a navigation drawer with fragments
Applying local styles and global themes
Chapter 3. Managing App Data
Storing data with SharedPreferences
Using files and the filesystem
Reading bundled assets and resources
Parsing processing and generating XML
Accessing data with ADO.NET
Accessing data with SQLite.NET
Encrypting databases with SQLCipher
Consuming content providers
Creating content providers
Backing up preferences and files to the cloud
Backing up data to the cloud
Chapter 4. Presenting App Data
Implementing a ListView
Using a SimpleAdapter
Using custom ListView items
Using a BaseAdapter with arbitrary data
Using a CursorAdapter
Optimizing the ListView
Enabling fast scrolling
Using section indexes
Integrating app searchability
Chapter 5. Communicating with the Outside World
Consuming REST services with HttpClient
Obtaining a network state
Handling network state changes
Using DownloadManager
Accessing Bluetooth
Transferring data via Bluetooth
Receiving NFC events
Writing NFC tags
Transferring data via NFC
Obtaining location coordinates and addresses
Chapter 6. Using Background Tasks
Asynchronous tasks
Starting services
Stopping services
Handling simultaneous service requests
Starting services automatically
Communicating with running services
Critical services
Chapter 7. Notifying Users
Toasts
Alert dialogs
Alert fragments
Embedded alert fragments
Selection alerts
The notification builder
Ongoing notifications
Custom notification views
Push notifications
Chapter 8. Interacting with Other Apps
Starting app components
Launching other apps
Obtaining data from activities
Using BroadcastReceivers