Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
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
Learning Material Design

You're reading from   Learning Material Design Master Material Design and create beautiful, animated interfaces for mobile and web applications

Arrow left icon
Product type Paperback
Published in Dec 2015
Publisher
ISBN-13 9781785289811
Length 186 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Authors (2):
Arrow left icon
Nadir Belhaj Nadir Belhaj
Author Profile Icon Nadir Belhaj
Nadir Belhaj
Kyle Mew Kyle Mew
Author Profile Icon Kyle Mew
Kyle Mew
Arrow right icon
View More author details
Toc

Menus and dialogs

Menus are an important interface in most applications, and although primary actions should always be performed by more obvious means, such as a button, lists of secondary actions are usually best made available through a menu.

When using a material or AppCompat theme, most of the material metrics and scales for menus are applied automatically, but occasionally, there are times when we will want to customize a dialog to use as a menu. This section covers how to implement a few common menu features such as submenus, groups, and checkmarks; how to generate popup menus; and finally, how to construct custom dialogs using the material widget, CardView.

Menus

The menus used up until now in this chapter have been designed to demonstrate how an app bar can be used as a menu, but there are times when we want more from such as submenus and menus that are context sensitive. The first thing to do here is to see what more can be done with the app bar overflow menu.

Tip

A complete list of...

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