I used android asset studio to create Launcher icon:
http://android-ui-utils.googlecode.com/hg/asset-studio/dist/icons-launcher.html#foreground.space.trim=1&foreground.space.pad=0&foreColor=33b5e5%2C0&crop=0&backgroundShape=bevel&backColor=ffffff%2C100
The studio generated images at proper pixel sizes: 48 * 48 (mdpi) 72 *72 (hdpi) and so on..
But on my Samsung galaxy s2 the app icon appear smaller then other apps and not filling its entire space.
Whay is this? how can i stretch it to full extent?
Chances are good it's a combination of a different screen size and different software (I'm assuming your old phone was from a different manufacturer). As long as the icons themselves appear to be very close to the same size from one to the next, I wouldn't be to concerned that they look different from your old device.
To change the size of app icons on Android, you'll also be changing the size of the text. This is due to the “Display Size” settings, which essentially enlarge the entire phone interface.
Select the Home screen grid or the Apps screen grid. You can change the grid size. App icons will change in size as they adapt to different grid options.
Go to “Settings -> Home page -> Layout.” From here you can pick custom icon layouts or simply just get down to business by selecting Resize. This will allow you to increase or decrease the size of your home screen app icons.
Asset studio adds unnecessary margins to the icon. If someone can come up with a similar tool without adding margins, it would be of great help. The solution to your problem is to use a single 512 by 512 image as icon. Android will scale the rest for you when users install your app.
Instead of importing image through Image Asset
in Android Studio, make 5 images with different size:
And then directly copy in respective Drawable
folder (mdpi, hdpi, xhdpi, xxhdpi, xxxhdpi) with same name.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With