Building Android UIs with Custom Views (使用自訂視圖構建 Android 使用者介面)

Raimon Rafols Montane

  • 出版商: Packt Publishing
  • 出版日期: 2017-10-27
  • 定價: $1,480
  • 售價: 6.0$888
  • 語言: 英文
  • 頁數: 294
  • 裝訂: Paperback
  • ISBN: 1785882864
  • ISBN-13: 9781785882869
  • 相關分類: Android
  • 立即出貨 (庫存=1)

買這商品的人也買了...

相關主題

商品描述

Key Features

  • Move beyond default UI templates, create and customize amazing UIs with Android Custom View
  • Enable smooth data flow and create futuristic UIs by creating flexible custom views
  • Scale your apps with responsive and data intensive views

Book Description

To build great user interfaces for your Android apps that go beyond the standard UI elements, you need to use custom Android views. With these, you can give your app a distinctive look and ensure that it functions properly across multiple devices.

This book will help you construct a great UI for your apps by teaching you how to create custom Android views. You will start by creating your first Android custom view and go through the design considerations. You will then see how the right choices will enable your custom view to perform seamlessly across multiple platforms and Android versions.

You will create custom styleable attributes that work with Android XML layouts, learn to process touch events, define custom attributes, and add properties and events to them.

By the end of this book, you will be able to create apps with custom views that are responsive and adaptable to make your app distinctive and an instant hit with its users.

What you will learn

  • Extend the standard UI widget framework by creating Custom views
  • Add complex rendering, animations, and interactions to your views
  • Optimize performance and decrease battery usage
  • Implement custom views to share between multiple projects, or share it publicly
  • Create 3D custom views using OpenGL ES

About the Author

Raimon Ràfols Montané is a software engineer currently living in the Barcelona area. He has been working on mobile devices since their early stages, ranging from monochrome devices to the current smartphones. During this time, he has worked in several areas: B2C/B2E/B2B apps, portals, and mobile gaming. Due to this broad experience, he has expertise in many technologies and, especially in UI, build systems, and client-server communications.

He is currently working as an engineering manager at AXA Group Solutions in Barcelona, taking care of all the engineering and development processes, mobile application quality, and leading the R&D team. In the past, he has worked abroad for Imagination Technologies near London and for Service2Media in the Netherlands.

In his spare time, he enjoys taking part in hackathons, photography, and speaking at conferences. Raimon has won more than 40 international awards, including AngelHack Barcelona 2015, Facebook World Hack Barcelona. Also, he has secured the second place at JS1k 2016. He was the chairman of the Transforming Industries Summit at the Mobile World Congress Shanghai 2017, where he also spoke about Enterprise Transformation. In addition, he has given talks speaking about Android and Java performance, bytecode, custom views, and entrepreneurship in at several conferences around the world.

In addition, Raimon is the coauthor of Learning Android Application Development, also published by Packt, and he has been the technical reviewer of several other titles, including Mastering Android NDK and Android Things Projects, among others.

Table of Contents

  1. Getting started
  2. Implementing your first Custom View
  3. Handling events
  4. Advanced 2D Rendering
  5. Introducing 3D Custom Views
  6. Animations
  7. Performance Considerations
  8. Sharing our Custom View
  9. Building an Electronic Programming Guide
  10. Building a Charts component
  11. Creating a 3D spinning wheel menu

商品描述(中文翻譯)

主要特點



  • 超越預設的UI模板,使用Android自訂視圖創建和自定義令人驚嘆的UI

  • 通過創建靈活的自訂視圖,實現流暢的數據流動和創新的UI

  • 使用響應式和數據密集的視圖來擴展您的應用程式

書籍描述


要為Android應用程式建立出色的用戶界面,超越標準的UI元素,您需要使用自訂的Android視圖。通過這些視圖,您可以為應用程式提供獨特的外觀,並確保其在多個設備上正常運行。


本書將教您如何創建自訂的Android視圖,幫助您為應用程式構建出色的用戶界面。您將從創建第一個Android自訂視圖開始,並經歷設計考慮。然後,您將看到正確的選擇如何使您的自訂視圖在多個平台和Android版本上無縫運行。


您將創建可與Android XML佈局一起使用的自訂可樣式屬性,學習處理觸摸事件,定義自訂屬性,並為其添加屬性和事件。


通過閱讀本書,您將能夠創建具有自訂視圖的應用程式,這些視圖具有響應性和適應性,使您的應用程式與眾不同,並立即受到用戶的喜愛。

您將學到什麼



  • 通過創建自訂視圖擴展標準的UI小部件框架

  • 為您的視圖添加複雜的渲染、動畫和交互

  • 優化性能,減少電池使用

  • 實現可在多個項目之間共享的自訂視圖,或公開共享

  • 使用OpenGL ES創建3D自訂視圖

關於作者


Raimon Ràfols Montané是一位目前居住在巴塞羅那地區的軟體工程師。他從早期的單色設備到現在的智能手機,一直在移動設備上工作。在此期間,他在多個領域工作過:B2C/B2E/B2B應用程式、門戶和手機遊戲。由於這種廣泛的經驗,他在許多技術方面都有專業知識,尤其是在UI、構建系統和客戶端-服務器通信方面。


他目前在AXA Group Solutions的巴塞羅那工作,擔任工程經理,負責所有工程和開發流程、移動應用程式品質以及領導研發團隊。過去,他曾在倫敦附近的Imagination Technologies和荷蘭的Service2Media工作。


在業餘時間,他喜歡參加黑客松、攝影和在會議上演講。Raimon已經贏得了40多個國際獎項,包括AngelHack Barcelona 2015、Facebook World Hack Barcelona。此外,他在JS1k 2016比賽中獲得了第二名。他曾擔任Mobile World Congress Shanghai 2017的Transforming Industries Summit主席,並在該活動上發表了有關企業轉型的演講。此外,他在世界各地的多個會議上發表了有關Android和Java性能、字節碼、自訂視圖和創業精神的演講。


此外,Raimon是Packt出版的《學習Android應用程式開發》的合著者,也是其他幾本書的技術審查人,包括《精通Android NDK》和《Android Things Projects》等。

目錄



  1. 入門

  2. 實現您的第一個自訂視圖

  3. 處理事件

  4. 高級2D渲染

  5. 介紹3D自訂視圖

  6. 動畫

  7. 性能考慮

  8. 共享我們的自訂視圖

  9. 構建電子節目指南

  10. 構建圖表組件

  11. 創建3D旋轉輪菜單