The extra tip for creating your life is a little easier in creating images for Photoshop. Create your image in mdpi, i.e. At 160 dpi. This is because Android calculates pixels as such.
px = dp * (dpi / 160).
So, if you want to make the button image 48x48 in size, create an image with that size and set the dpi to 160. Once you are done, just change the dpi to 120, 240 and 320 and save your images.
You don’t have to spend time figuring out what image sizes should be for different densities.
source share