Why GoogleMaterial.Icon does not have logout Icon in android library?

46,720

Solution 1

exit_to_app is now available on material.io

enter image description here

Solution 2

Currently (2015-04-13) there is no icon for sign-in/sign-out, there is an open issue requesting it.

To solve this problem, in the meanwhile, I used the power_settings_new icon enter image description here.

Solution 3

I made SVG log out icon from exit-to-app icon.

Preview:

Preview

Also there are several variants on materialdesignicons.com:

Solution 4

You must add the icons to your project.

  1. Firstly, go to Google's Material Design Icons Webpage.

  2. Next, search for the one you want. It looks like you may want the 'exit to app' icon in this case.

  3. Select whether you want the dark icon or the light icon then pick the icon size you would like (I always use 24dp if the icon goes in the ActionBar).

  4. Then you have to download the PNGs.

  5. Open the downloaded folder and find the Android directory within.

  6. Move all the icons from --dpi folders and such to the respective folders in your res directory.

  7. You may now use them in your project.

Hope this works!

Solution 5

You need to download the icons in order to use them in your app. They are not inside the standard android library.

Share:
46,720
Elnaz
Author by

Elnaz

Updated on October 14, 2020

Comments

  • Elnaz
    Elnaz over 3 years

    Although here https://www.google.com/design/icons/ contains an "exit to app" icon, I can't find it in its android library.

  • Elnaz
    Elnaz over 8 years
    The downloaded ones differ in color from the standard one in library. downloaded ones are either white or black but the ones in the library are gray.
  • Bona Fide
    Bona Fide over 8 years
    You have to change the color by yourself. Check out this question Material Design icon colors
  • Zon
    Zon over 6 years
    Nope. It is now "input" action: material.io/icons
  • mixel
    mixel over 6 years
    @Zon. There is also "exit-to-app" icon. I made my icon from that icon by making arrow to point outside. "Input" icon is little different. It has rectangle instead of square and smaller arrow pointing inside of rectangle as in "exit-to-app" icon.
  • Keval Bhatt
    Keval Bhatt almost 5 years