Why GoogleMaterial.Icon does not have logout Icon in android library?
Solution 1
exit_to_app is now available on material.io
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 .
Solution 3
I made SVG log out icon from exit-to-app icon.
Preview:
Also there are several variants on materialdesignicons.com:
Solution 4
You must add the icons to your project.
Firstly, go to Google's Material Design Icons Webpage.
Next, search for the one you want. It looks like you may want the 'exit to app' icon in this case.
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).
Then you have to download the PNGs.
Open the downloaded folder and find the Android directory within.
Move all the icons from --dpi folders and such to the respective folders in your res directory.
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.
Elnaz
Updated on October 14, 2020Comments
-
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 over 8 yearsThe 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 over 8 yearsYou have to change the color by yourself. Check out this question Material Design icon colors
-
Zon over 6 yearsNope. It is now "input" action: material.io/icons
-
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 almost 5 years