How to make android app icon display correctly? - android

I have tried changing different settings, using different image sizes and using different image shapes but nothing has worked. Do I need to add a version with rounded corners to my android studio file?

Right click on drawable folder > new > image asset.
In the asset studio it will automatically generate the app icon shape, you just have to pick your transparent logo on the foreground layer and pick the white color on the background layer. So no need to provide rounded corners version

Related

Android icon has white border on Pixel 3XL

I'm trying to implement a launcher icon for an Android app. I'm using Android Studio's New Image Asset capability to create the icon from an image file and it works in most places except for the later Pixels.
On the Pixel 3XL, it looks like the following figure. The icon with a round white border around it.
On the Pixel 2, it looks the same
But on an original Pixel, it looks right:
I created the icon assets using the Android Studio New Image Asset capability. Selecting the image icon as shown in the following figure:
Then I set the background to the background color for the icon:
Based on what the UI shows, the icons all look right and Android Studio is supposed to generate the right files for all target platforms. Can someone please help me understand what I need to do to get rid of that white border on later phones?
You should add ic_launcher_foreground.xml and ic_launcher_background.xml to drawable file in your project. As far as I get it, you've try to make red background then add red backgorund layout you have only foreground image in this way. Btw that is not a bug that is a feature :)

why the image for notification icon generated using Android Asset Studio is completely white?

so I want to make icon for push notification. say for example I want to use the android image below as notification icon
https://p7.hiclipart.com/preview/135/689/279/android-computer-icons-logo-android.jpg
so I try to make it using Android asset studio. but the image generated from this Android Asset studio is completely white like this
what should I do ? is there any image requirement for this ?
Use Transparent Images
The icons generated will be totally solid color (dark grey or white will be used on the device depending on theme).
The icon you add should only contain the "shape" you want to show as the single color. The rest should be transparent pixels.
Any non-transparent pixels will be converted to white. So if you have a square logo with no transparent pixels, it will be a giant single colored square.
Use a .png image so you can save it with transparent background.
As you can see, icons in notifications bar are white, that's why you are seeing all white

Android Studio 3.0.1 Image Asset

I'm having trouble configuring my launcher icon using Launcher Icons (Adaptive and Legacy). I created an already round PNG icon as an example.
I want it to appear just like that but the background layer cannot be set to transparent.
Is it possible remove the background layer? What is the recommended way?

Android Studio adds white background to PNG image. How to fix it?

I have a PNG logo file that I want to display inside navigation drawer. But whenever I add the image asset to "mipmap", it adds white background and bounding boxes around the image. How to fix this?
Original Image:
After adding as image asset to Android Project's "mipmap" folder:
The 'mipmap' folder used ONLY be used for App icons. And these icons HAVE to have the same width and height. If they aren't, Android Studio will add extra white space to them.
Create a new icon that is square, but simply make some of the image transparent. Then you'll get your desired effect.
It is because the Shape property was set to Square by default. I changed it None, its fixed now. Thanks for responses.
Run the app - if it still shows - use PhotoShop to make the png.. your png is not made correcty
The problem is when you add it as an image asset as launcher icon it adds white background to the image sometimes if the image isn't of the specified size. Use this option only when you're adding launcher icon, use action bar and tab icons option that won't add any white background to the image, select the theme holo_light theme will make the image dark, and holo_dark theme will make the image white, don't worry you can change the color of image of any custom color by selecting the custom theme while uploading or, you can use the android:tint attribute in the layout file. And add app related graphics in the drawable folder only.

Asset Studio in Android Studio; Square not working

I'm using Android Studio 2.2.1 with Mac OS 10.11.6.
I'm adding the ic_launcher-icon with control click>New>Image Asset. I usually take Shape: Square. That makes the corners rounded like an iOS icon.
But suddenly it doesn't work. It looks like this:
Also trying to use Shape: Circle doesn't work. It's still as before. But you can see a shadow of a circle on the icon:
When running the app the icon is as in the Asset Studio. That means it's not only a worn Asset Studio display.
I also removed Android Studio with AppCleaner and reinstalled it, but without success.
Does anybody know what I can do?
According to: Create Circular Launcher Icon it might be Android Studio bug, try to use Android Asset Studio instead to generate circular launcher
Android Asset Studio: https://romannurik.github.io/AndroidAssetStudio/
Hope it will help
So the observation I just had on the Android Studio Image Asset Studio, the shape you are talking about is just for the background image. That is, if you have a .png image with transparent background, you can use this shape option to create your icon with custom background of desired shape and color. But if your image is beyond the scope of the background shape, then it will be useless. Like in your case, since your image is full square, the background doesn't make sense.
In short, the shape option is for background but not for image

Categories

Resources