
Building Android UIs with Custom Views
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
All prices
More details
Other editions
Additional editions

Person
Raimon Rafols is a Software Engineer currently living in the Barcelona area. He has been working on mobile devices since the early ages: from monochrome devices to the current smartphones. In all these years he 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 Engineering Manager at AXA Group Solutions in Barcelona, taking care of all the engineering and development processes, mobile application quality and leading a small R&D team. In the past, he has been working abroad for Imagination Technologies near London and for Service2Media in the Netherlands. In his spare time he enjoys taking part in hackathons, photography and giving talks in conferences. Raimon has won more than 40 international awards including AngelHack Barcelona 2015, Facebook World Hack Barcelona and 2nd place at js1k 2016. He has been speaking about Java/Android performance and bytecode, Android custom views and about entrepreneurship in several conferences around the world. I would like to thank my girlfriend for her support and understanding during the late night and lengthy writing weekends. Also, I would like to thank my parents and cousin, as without their support and encouragement, I would not be doing what I do today. Last, but not least, I would like to thank everyone that challenged me and help me grow up during my professional career. People like Carlos Carrasco, Alfred Ferrer, Pau Vivancos, Miquel Barcelo, David Domingo, Marcel Roorda, Diego Morales, Alberto Chamorro, Teun van Run, Tom van Wietmarschen, Josep Cedo, Joanne Pupo, Jordi Valldaura, Mathieu Sivade, Chris Jakob, Tomas Kustrzynski, Bartlomiej Zarnowski, Radoslaw Holewa and those I have forgotten to mention here.
Content
- Cover
- Title Page
- Copyright
- Credits
- About the Author
- Acknowledgements
- About the Reviewer
- www.PacktPub.com
- Customer Feedback
- Table of Contents
- Preface
- Chapter 1: Getting Started
- What's a custom view
- The need for custom views
- Examples on the market
- Setting up the environment
- Installing development tools
- How to set up an emulator
- How to set up a real device for developing
- Creating our own first custom view
- Extending a view
- Creating a simple view from scratch
- Summary
- Chapter 2: Implementing Your First Custom View
- Measuring and parameterizing our custom view
- Measuring our custom view
- Parameterizing our custom view
- Instantiating custom views
- Instantiating custom views from code
- Builder pattern
- Creating a custom layout
- Extending ViewGroup
- Basic rendering
- Creating the basic circular activity indicator
- Summary
- Chapter 3: Handling Events
- Basic event handling
- Reacting to touch events
- Drag events
- Complex layouts
- Advanced event handling
- Detecting gestures
- Summary
- Chapter 4: Advanced 2D Rendering
- Drawing operations
- Bitmaps
- Using the Paint class
- Drawing more primitives
- Drawing text
- Transformations and operations
- Putting it all together
- Summary
- Chapter 5: Introducing 3D Custom Views
- Introduction to OpenGL ES
- Getting started with OpenGL ES in Android
- Drawing basic geometry
- Drawing geometry
- Adding volume
- Adding textures
- Loading external geometry
- Summary
- Chapter 6: Animations
- Custom-made animations
- Timed frame animations
- Fixed timestep
- Using Android SDK Classes
- ValueAnimator
- ObjectAnimator
- Summary
- Chapter 7: Performance Considerations
- Performance impact and recommendations
- The impact of not following the best practices
- Code optimization
- Mocking up the preview window
- Summary
- Chapter 8: Sharing Our Custom View
- Best practices for sharing our custom view
- Considerations and recommendations
- Configurable
- Publishing our custom view
- Open sourcing our custom view
- Creating a binary artifact
- Summary
- Chapter 9: Implementing Your Own EPG
- Building an EPG
- EPG basics and animation setup
- Interaction
- Zooming
- Configurations and Extensions
- Making it configurable
- Implementing callbacks
- Summary
- Chapter 10: Building a Charts Component
- Building a basic chart custom view
- Margins and padding
- Basic implementation
- Optimizations and improvements with Paths
- Background lines and details
- Customizations
- Adding advanced features
- Real-time updates
- Multiple data sets
- Zooming and scrolling
- Summary
- Chapter 11: Creating a 3D Spinning Wheel Menu
- Creating an interactive 3D custom view
- Adding interactions
- Improving interactions and animations
- Adding actionable callbacks
- Customizations
- Beyond the basic implementation
- Rendering text
- Multiple faces
- Summary
- Index
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.