Search code examples
androidgoogle-mapsresolution

Does images have to be power of two in Android?


I'm creating an Android app with a map using the Google Maps API v2. I'm creating custom markers for it, and I wonder if the images for them (the markers) has to "be power of two" (has a resolution which where both the width and the height is the same, and power of two), or if I can use whatever resolution I like?

In many cases I've seen, power of two is required, and I wonder if this is one of those cases.


Solution

  • Map marker can have any size you want. This is the case you want to provide correctly scaled bitmaps to your drawable folders.