Cross-platform UI Development with Xamarin.Forms
暫譯: 使用 Xamarin.Forms 進行跨平台 UI 開發
Paul F. Johnson
- 出版商: Packt Publishing
- 售價: $1,930
- 貴賓價: 9.5 折 $1,834
- 語言: 英文
- 頁數: 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# 知識。
你將學到什麼
- 創建響應式 UI,根據目標平台進行修改
- 理解設計應用程序的基本原則,以及針對目標平台所需考慮的因素
- 使用單一代碼庫構建完整的應用程序
- 開發吸引人的用戶界面
- 將信息綁定到後端代碼以生成響應式應用程序
- 設計有效的可攜式類庫 (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——這款即時通訊應用程序——其包括推送通知、用戶界面、地圖、數據庫和網絡服務等關鍵功能。接下來,你將學習如何使用 Xamarin.Forms 計劃 UI 以進行跨移動平台開發,並進一步創建自定義按鈕、擴展 UI,並連接到 Facebook 和 Twitter 等社交網站。
你還將了解 PCL 庫的限制以及它們如何簡化編碼。接下來將創建 SQLite 數據庫和數據庫管理器,並在數據庫管理器中反映 SQLite 數據庫。然後,你將學習如何使用硬體功能,涵蓋 iOS、Android 和 Windows Mobile 的相關內容。最後,本書將介紹一些常見策略,讓你能夠創建“只需運行”的應用程序,而無需每次都重新發明輪子。
風格與方法
以有趣和非正式的方式使用最新的跨平台方法創建移動應用程序。每個編碼章節都包括可從 Packt Publishing 網站下載的完整工作代碼示例。