Cross-platform UI Development with Xamarin.Forms

Paul F. Johnson

  • 出版商: Packt Publishing
  • 售價: $1,870
  • 貴賓價: 9.5$1,777
  • 語言: 英文
  • 頁數: 330
  • 裝訂: Paperback
  • ISBN: 1784391190
  • ISBN-13: 9781784391195
  • 相關分類: 使用者介面 UI
  • 海外代購書籍(需單獨結帳)

商品描述

Create a fully operating application and deploy it to major mobile platforms using Xamarin.Forms

About This Book

  • Create standard user interfaces on Windows Mobile, Android, and iOS and then make those interfaces look good with ease
  • Design a full-blown application in very little time with just about the entire code being shared
  • Learn how to access platform-specific features and still have the same core code with this handy guide

Who This Book Is For

This book is intended for mobile software developers who are fed up with having three different code sets for the same application. If you want to put your code on all mobile platforms with minimum fuss, and just want to develop but haven't got the time to be digging too far into a particular platform, this is the book for you. Basic knowledge of C# is assumed.

What You Will Learn

  • Create a responsive UI, modified to suit the target platform
  • Understand the basics of designing an application, and the considerations needed for target platforms
  • Construct a complete app using a single codebase
  • Develop attractive user interfaces
  • Bind information to the code behind to generate a reactive application
  • Design an effective portable class library (PCL)
  • Include a Windows Mobile application within your standard Xamarin.Forms application
  • Extend your applications using the Xamarin.Forms Labs library

In Detail

Xamarin is an IDE used for the development of native iOS, Android, and Windows, and cross-platform mobile applications in C#. For the mobile developer, that means learning three different languages to create the same application. Even if you use the Xamarin toolchain, you still need to work with three different user interface construction sets. Xamarin is essentially a container in which developers can write any application in C# and use the Xamarin compiler to package and deploy on Android, iOS, or Windows platforms. To top this, Xamarin.Forms plays the role of a single codebase for mobile applications.

This book will show you, with fully-coded examples, how to use both the Xamarin toolchain and the Xamarin.Forms library to code once for the three platforms. It goes from the concept and design of a mobile messenger application to its execution. You will be introduced to Messenger―the messaging app―which includes key features such as push notifications, UI, maps, databases, and web services. Next, you will learn to plan the UI using Xamarin.Forms for cross-mobile platform development, and move on to creating custom buttons, extending the UI, and connecting to social sites such as Facebook and Twitter.

You will also learn about the limitations of PCL libraries and how they make coding easier. This will be followed by the creation of a SQLite database and a database manager, and the SQLite database's reflection within the database manager. You will then be taken through the use of hardware features with ample coverage of iOS, Android, and Windows Mobile. Finally, the book will conclude by introducing common strategies that allow you to create applications that “just work” without having to reinvent the wheel each time.

Style and approach

A fun and informal approach to creating a mobile application using the most up-to-date cross-platform approach. Each coding chapter includes fully working code examples available for download from the Packt Publishing website.

商品描述(中文翻譯)

使用 Xamarin.Forms 創建並部署到主要移動平台的完全運作應用程式

關於本書



  • 在 Windows Mobile、Android 和 iOS 上創建標準的使用者介面,並輕鬆地使這些介面看起來很好

  • 在很短的時間內設計一個完整的應用程式,幾乎所有的程式碼都是共享的

  • 學習如何存取特定平台功能,並仍然具有相同的核心程式碼,這本手冊非常實用

本書適合對象


本書適合對於為同一個應用程式撰寫三組不同程式碼感到厭煩的移動軟體開發人員。如果您想要以最少的麻煩將程式碼放在所有移動平台上,並且只想開發但沒有時間深入研究特定平台,那麼這本書就是為您而寫的。假設您具備 C# 的基本知識。

您將學到什麼



  • 創建一個響應式的使用者介面,並根據目標平台進行修改

  • 了解設計應用程式的基礎知識,以及針對目標平台所需的考慮因素

  • 使用單一程式碼庫構建完整的應用程式

  • 開發具有吸引力的使用者介面

  • 將資訊綁定到程式碼後端以生成反應式應用程式

  • 設計有效的可攜式類別庫 (PCL)

  • 在標準的 Xamarin.Forms 應用程式中包含 Windows Mobile 應用程式

  • 使用 Xamarin.Forms Labs 庫擴展您的應用程式

詳細內容


Xamarin 是一個用於開發原生 iOS、Android 和 Windows 平台以及跨平台移動應用程式的 IDE,使用 C# 語言。對於移動開發人員來說,這意味著需要學習三種不同的語言來創建相同的應用程式。即使使用 Xamarin 工具鏈,您仍然需要使用三種不同的使用者介面構建集。Xamarin 本質上是一個容器,開發人員可以在其中使用 C# 編寫任何應用程式,並使用 Xamarin 編譯器將其打包並部署到 Android、iOS 或 Windows 平台上。此外,Xamarin.Forms 扮演著移動應用程式的單一程式碼庫的角色。

本書將通過完整的程式碼示例向您展示如何使用 Xamarin 工具鏈和 Xamarin.Forms 庫一次為三個平台編寫程式碼。從概念和設計一個移動通訊應用程式開始,一直到執行。您將介紹 Messenger - 一個包含推送通知、使用者介面、地圖、資料庫和 Web 服務等關鍵功能的通訊應用程式。接下來,您將學習使用 Xamarin.Forms 計劃跨移動平台開發的使用者介面,並開始創建自定義按鈕,擴展使用者介面,並連接到 Facebook 和 Twitter 等社交網站。

您還將了解 PCL 程式庫的限制以及它們如何使編碼更加容易。接著,將創建一個 SQLite 資料庫和資料庫管理器,並在資料庫管理器中反映 SQLite 資料庫。然後,您將通過充分涵蓋 iOS、Android 和 Windows Mobile 的硬體功能的使用來進行。最後,本書將介紹常見的策略,讓您能夠創建“只需工作”的應用程式,而無需每次都重新發明輪子。

風格和方法


使用最新的跨平台方法來創建移動應用程式的有趣和非正式方法。每個編碼章節都包含可從 Packt Publishing 網站下載的完整工作程式碼示例。