Skip to content Skip to sidebar Skip to footer

Image Size For Actionbarsherlock Background

If I were to get an art asset made intended for use as the background of an ActionBar, what size (in pixels) should I request? Everything I have found referencing the size of an A

Solution 1:

The action bar can be 40, 48, or 56 dp in height depending on configuration. This means that because of how Android scales things by density there are 9 different absolute pixel heights. The width varies depending on the device, of course.

Your best bet is to use 9-patch drawables or create the drawable using a shape XML so that it can adapt to the nearly infinite number of configurations of devices.

Post a Comment for "Image Size For Actionbarsherlock Background"