Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Building Android UIs with Custom Views

You're reading from   Building Android UIs with Custom Views Build amazing custom user interfaces with Android custom views

Arrow left icon
Product type Paperback
Published in Oct 2017
Publisher Packt
ISBN-13 9781785882869
Length 294 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Raimon Ràfols Montane Raimon Ràfols Montane
Author Profile Icon Raimon Ràfols Montane
Raimon Ràfols Montane
Arrow right icon
View More author details
Toc

Beyond the basic implementation

We have got a very basic and actionable 3D menu but, in order for it to be used on a production application, we have got to add some more details. For instance, we can now select a different menu option depending on the face of the cube we are selecting, but unless we are doing a very simple color picker, we'd be selecting an option completely blind, as we won't know which face does exactly what.

One way to solve this is to render some text depending on which face is selected, but on OpenGL ES we can't simply just call drawText and render some text, like we are used to do when using a Canvas. Also, in this example, there are only four selectable faces or options; let's make some changes so we can have more selectable options.

Rendering...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime