Search code examples
google-glassgoogle-gdk

Glass AlertDialog upsizing icon


I am following all the instruction from https://developers.google.com/glass/develop/gdk/card-design#alert

but the icon displaying in alert dialog is stretched and clipped as shown below:

Alert dialog icon issue

Please guide how to correct this issue.

Thank you.


Solution

  • Make sure that your icon is in the drawable-hdpi folder of your res directory and not in the plain drawable folder or the folder for a different pixel density.