When i want to create an ActionBar icon using Eclipse's 'Create new Icon' and i choose the one i want from my resources.Instead of creating it correctly it only gets its shape and it paints it all grey. e.g ifi have a round .png with an arrow inside,it only gets the round shape and not the arrow image.How can I overcome it?
EDIT
The Android Asset Studio (Chrome browser is required to use the tool) can automatically generate a number of different graphic assets for your app. It knows the right sizes for each icon type, for each Android version. Even better, this tool has been integrated into the Android Developer Tools (ADT) to allow seamless integration of new assets into your app.
Related
I build Android Flutter app and it works well but there is one problem when I open the app drawer.
The app's logo looks like this. And I have small and big size version.
The logo looks like this.
I use it like this
android:icon="#mipmap/ic_launcher"
but when I build the app the logo looks to big so I have to fix it. I searched related keywords but there are only answer that icon makes bigger.
How can I make it icon smaller? I already tried smaller image but results are same.
Follow the step
Open android folder in Android Studio
Wait until project initialise or indexing
After indexing complete, Right click on app folder from side-menu
New > Image Asset
New pop-up will open, In Source Asset section you can select your logo and set a logo size with help of below slider in Scaling section
I'm trying to update an existing app, it's been a few years since the last update and I've updated Android Studio to the most recent version v3.5.3. Among other things I want to change the app icon, so I've updated all the PNG files.
However, in the emulator it keeps showing the old default icon.
If I understand correctly, there is a new feature since API-26 which allows for something called adaptive app icons, but I can't figure out how to update this icon.
The #mipmap/ic_launcher.xml file seems to be some sort of vector file, which describes paths and strokeWidth and lines to construct the default icon. I tried and searched all over, but I have no clue how customize this type of icon to something with my business logo.
Do I have to turn my custom logo into a vector image? If so, how can I do this? Using which app or utility? Can't I still just use my PNG files like previously?
I build my Android app with VS2017 Xamarin, but I'm not sure that has anything to do with my problem. I have built an app icon (PNG) that looks like this:
But when I launch my app in an Android emulator, it always crops out some of my icon, thusly:
Notice that a bit of the truck tires and truck top get cropped out. But this makes no sense because as you can see in photoshop, there is plenty of empty space between the truck icon and the edges of the square. I want that space/margin to be preserved inside the icon, and not so aggressively cropped.
I keep adding more and more space, but something (Android OS? Xamarin compiler? VS2017?) seems to be ignoring the margin/space and trying to aggressively crop right up to my icon.
How can I solve this?
It's because your app is trying to look for a Round Icon file as you can see in this Microsoft blog post. The easiest way to solve all your Icon issues for Android, including the pesky adaptive icons, is to use Android Studio. You just install the free application (Windows/Mac) and then
Open the Android Studio, and create a blank project. Then right click on the resources folder of the project and add an “Image Asset”.
In there, add the image, and then resize the image appropriately. Press OK.
Reveal the file in Finder/Explorer and Migrate all the files and folders to your existing project in Visual Studio.
For rounded icons to work, you might have to make changes to the manifest file, or what ever file in the app you set the icon image name, and add an attribute of rounded-icon like in the article
Test it & it should work
I am developing an app in which there are multiple tabs with icon without any title. The problem is that the icons are not looking as bright it should. I used white color(FFFFFF) in creating icon assets. Still it doesn't looks so good.
The pic above shows Facebook Messenger and my App. There is difference between color(although both are white).
Any suggestion will be appreciated.
Yeah I have experienced similar problem. I think it is fault of android asset studio when I create icon with white in reality they are no white as I expected.Then I found very good online studio which is same as Android asset studio even better than that. Solution for this I think you have create icon out from AS then import them to appropriate folders.Here online icon generate web site link
Note: The question is old, but I consider sharing this information could be useful for anyone who could stumble upon this issue in the future.
If you use the Asset Studio tool from the Android Studio your icons will contain
alpha channel with a value of 60% (value depends on selected colour). I provided an example below.
In case you can use vector graphics it should work for you because you can freely edit XML file describing the generated image. Just remove android:alpha=".." attribute.
If you cannot use vector graphics and want to avoid transparency use this official online tool from Google to generate material icons for your application.
This tool supports multiple sizes, black and white colours, and SVG as well as PNG format:
Issues example of 60% alpha channel in Android Studio:
I created my own icon for my app using Eclipse (Manifest->Application->Icon etc) and this created the same icon for all different phone screens. However, I now need that same icon for the Google Play market and it needs to be 512x512. Is it even possible to enlarge that icon using Eclipse?? Thanks.
Eclipse creates it in your project root, name: ic_launcher-web.png or something like it.
Not that I know of, but you can use Android Asset Studio
I used it to make plenty of action bar icons, notification icons and just general icons. I think it is a great tool all android developers should be aware of :)