I'm wondering if it is possible to make my own personal icon for when my app is running? I don't really want to worry about adding it to the notification scroll down menu. I just want the picture in the top left corner. Any help on how to go about doing this would be appreciated. Thanks
Actually it is possible to change the icon in the top left corner. You have to change the ic_launcher png file (in res/drawable). Don't forget to change it in the hdpi, mdpi and ldpi folder.
for mdpi it should be 100X100
for hdpi it should be 150:150
for ldpi it should be 75:75
Android screen sizes in Pixels for ldpi, mdpi, hpdi?
This is not possible. If you are going to have a Notification, you must have it in the notification drawer as well.
Related
To my understanding, I need to create several different versions of my image drawables, varying by size so that devices load the appropriate one.
In my Photoshop mockup of my app, I have an icon image that is 12px x 12px on my monitor.
What various sizes/dimensions do I have to make of the icon?
Should the icon stretch to the sides of the drawable's dimensions or should there be some padding?
Thanks.
Scroll down to 'Alternative drawables' to get your answers:
http://developer.android.com/guide/practices/screens_support.html
The size of your photoshop mock up will define what your base is.When I'm not sure what I do is take an icon and drop it in one of the drawable folders, for example let's say xhdpi, and only in that one. From there I launch the app and see how the icon look on my phone. If it's too small then I move to the next folder down, in this case hpdi. If it was too big I would move it to the next folder up, in this case xxhdpi.From there you can calculate the size of the other drawables, using the example on that link.
For reference see the sizes of default ic_launcher icons provided by android for your app in every drawable or mipmap folder when you first create a new project.
See the sizes in pixels and do the same for your custom icon.
Its your wish if you want to give padding to your icon image or not. Its up to you how you want to make your icon look.
So I am generating an Android notification and setting the small icon property to an image that is 400x400 pixels. The image looks as it's supposed to in the notification bar (see below - it's the yellow circle with green/red outline thing).
The problem is that when you pull down the notification drawer, the image for the notification's small icon is zoomed in and doesn't look as it should (see image 2). I want it to be that exact same image as the icon in the notification drawer, too.
Does anyone know why this happens / how to make the original image be the actual small icon?? Please let me know :( thanks.
According the Guidelines :
Notification icons must be 24x24 dp.
400x400 px sounds a very big size, i use in some applications the launcher icons, even the xxhdpi (144x144) and xxxhdpi (192x192) will load with no problem.
I have a quick question: will it work when I put the same 57px x 57px icon to all drawable-ldpi, drawable-mdpi and drawable-hdpi folders. Will it run on all devices?
in other words if small icon will be visible on big screens or x-large screens.
It will work, but you really should not use size of 57x57 for any screen size - scaled down images will look as ugly as scaled up. Better avoid it.
Please read more here: http://developer.android.com/guide/practices/ui_guidelines/icon_design_launcher.html (yes, it is an official documentation).
Yes, it'll work. But it is good to have all icons. Because it'll be pixelat on large screens.
If you simple put icon in drawalbe folder (which is default folder) and you don't have any other folders like hdpi, mdpi, ldpi for all screen sizes. then it'll also be considered for all resolutions/sizes.
It will work. But it will not look well on some screen.
I've created a menu icon and included a 36x36, 48x48 and 72x72 in the ldpi, mdpi and hdpi drawable folders. It looks fine on all devices except honeycomb tablets, where it seems like the padding around the Android icons are bigger than on my custom icon. I've included a screenshot (see how much bigger my 'Resume Reading' icon is than the android 'Back' and 'My Library' icons are). How do I make my icon look like this?
I think I found the problem. When using the Android resource icon's on a tablet, I think it changes the padding in order for the icon to be used in the action bar. So when displaying them in a pop up menu at the bottom they are appearing much smaller than they should be. The solution is to copy the android resources into our own resource folder as it says to do here http://developer.android.com/guide/practices/ui_guidelines/icon_design_menu.html
Most of your Tablets are not hdpi, they are xhdpi. While the Icon Design Guidelines are useful, they don't give the whole story. Consider reading Supporting Multiple Screens. Here, they tell you further ratios and dimensions. To save you some time, resources should be 3ldpi:4mdpi:6hdpi:8xhdpi meaning that your xhdpi icon should be 96 x 96. Please, read the whole document, though. It is insanely useful.
I have designed a launcher icon 48x48 pixels and placed it in my res/drawable folder. When I install the application, the icon in the application menu seems to be smaller and it is wrapped in a box by default. Did I do something wrong? Any help is appreciated.
48x48 should be for a mdpi screen. What device are you displaying it on? Also, is it saved as a transparent PNG or a JPEG?