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
Hands-On Android UI Development

You're reading from   Hands-On Android UI Development Design and develop attractive user interfaces for Android applications

Arrow left icon
Product type Paperback
Published in Nov 2017
Publisher Packt
ISBN-13 9781788475051
Length 348 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Jason Morris Jason Morris
Author Profile Icon Jason Morris
Jason Morris
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Creating Android Layouts 2. Designing Form Screens FREE CHAPTER 3. Taking Actions 4. Composing User Interfaces 5. Binding Data to Widgets 6. Storing and Retrieving Data 7. Creating Overview Screens 8. Designing Material Layouts 9. Navigating Effectively 10. Making Overviews Even Better 11. Polishing Your Design 12. Customizing Widgets and Layouts 13. Activity Lifecycle
14. Test Your Knowledge Answers

Elevating widgets


An excellent way of highlighting one widget over the others on the screen is to make it appear over the others on the screen, not two-dimensionally, but floating above them as though in three-dimensions. This is already a clear pattern if you look at the FloatingActionButton classes; they don't just overlap other widgets, but they have a shadow and appear to float in space (hence the class name FloatingActionButton).

One of the great features in the Android widget library is that the View class defines the notion of elevation, which makes it usable by every widget in the toolkit. The elevation of a widget doesn't affect its two-dimensional position or size, but does cause it to produce a shadow that will be correctly shaded as though the widget is floating in three-dimensions. This can be used to create an amazing effect when you need to draw attention to a message, or when the user is repositioning a widget on the screen (for example, reorganizing a list of reminders)....

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