Chapter    4

Implement Piece by Piece

In the previous chapter, you used an iOS storyboard to lay the groundwork for using navigation patterns. It resulted in a set of connected UIViewController classes in a model-view-controller (MVC) framework that mapped to Android counterpart fragments.

In this chapter, you will implement each view-controller pair one piece at a time. You will also focus on the following common programming-task mappings from iOS to Android:

  • User interface and common UI widgets
  • Persistent storage options
  • Network and remote services with JavaScript Object Notation (JSON)

User Interface

All those storyboard scenes that you implemented using the screen navigation patterns in Chapter 3 were intentionally simple. Obviously, a useful ...

Get Migrating to Swift from Web Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.