What is the recommended size of the ActionBar icon in Material Design (Android API 21+)?

First of all, this question is related: How big should the Action Bar icons (toolbars) in the new Android Material design?

In a related question, it is clear that the size of the target for the action bar icons should be 48 dp. I would like to get a couple of things clarified regarding these icon sizes in Material Design:

  • On this page: Material Keylines - Touch Target Size has two icons, the search icon is tiny (24dp) and the profile icon is much larger (40dp). Is there any recommendation on how big the icon should be, within the 48dp touch target? The action bar icons that you can download from Material Design seem to be 40dp (for example, as a profile button on a linked site).

  • I believe the old Iconography instructions are outdated for Material Design, is that right? This page says that the icons should be 32dp with the 24dp: Iconography icon.

  • I also noticed that Android Asset Studio and Android Asset Studio for Material Design generate xxhdpi toolbar icons with 96x96 pixels , but I assumed that they should be 144x144 pixels . I guess this is because the xxhdpi 48dp action bar icons in the icons from the Material Design site are 144x144 pixels. Is it right that the Material Design ActionBar icons should be 144x144 pixels for xxhdpi?

+7
android material-design android-icons
source share
1 answer
  • There are recommendations for most functions. Toolbar icons should always be 24dp , whereas, as you say, the circular functions (including images and floating buttons) should be 40dp . You can find different values ​​for different views, on the page you linked, or in the "Components" side menu.

    I uploaded material icons some time ago, here or here . In both cases, the icons have different sizes, 18dp , 24dp , 36dp and 48dp . You can choose the best size and set the appropriate registration in the view to provide a 48dp area with a click. In most cases, if you choose the theme AppCompat or Material , it will handle the size and padding for you.

    In addition, for example, when setting up a button, I would select Buttons from the Components menu and get size information there.

  • Yes.

  • You are probably right, the 48dp icons for xxhdpi should be 144x144 pixels.

+13
source share

All Articles