Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AccountAuthenticator icons

Tags:

android

I am implementing an AbstractAccountAuthenticator and I cannot find any information regarding the dimensions of the icon, and smallIcon drawables required.

There is a SampleSyncAdapter which is a sample demo for implementing the above (It also demonstrates how to implement an AbstractThreadedSyncAdapter), but it only defines 1 drawable resource for both icon and smallIcon.

Does anyone know the standard and required pixel sizes for both of these resources?

like image 811
Eurig Jones Avatar asked Mar 09 '12 00:03

Eurig Jones


1 Answers

For high-density screens (drawable-hdpi):

  • smallIcon: 36x36 px
  • normal: 72x72 px

for medium-density screens (drawable-mdpi):

  • smallIcon: 24x24 px
  • normal: 48x48 px

One drawable resource for both in /drawable is the default drawable resource, and it's designed for normal screen size and a medium density. The system scales default density resources up for high-density screens and down for low-density screens so it's better if you make a directory for hdpi and another one for mdpi with the given size of icons.

Hope that helps.

like image 135
CsaByte Avatar answered Nov 13 '22 01:11

CsaByte