question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How correctly set background color in android adaptive icon

See original GitHub issue

Hi! I want to set white color in my icon appication, but if i set these settings in app.json

    "android": {
      "package": "test.com",
      "adaptiveIcon": {
        "foregroundImage": "./assets/icon3.png",
        "backgroundColor": "#FFF"
      }
    }

I get dark green icon ((( My icon3.png for test icon3

My screenshot from android emulator: icon3.png Screenshot 2020-03-16 at 7 21 38 PM

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
gbkwiattcommented, May 30, 2020

solution is to use in your app.json "primaryColor": "#FFFFFF",

0reactions
brentvatnecommented, Dec 15, 2021

@JosiasBatista: https://docs.expo.dev/versions/latest/config/app/#adaptiveicon

if the background color isn’t working as expected for you then create a new issue and fill out the issue template

Read more comments on GitHub >

github_iconTop Results From Across the Web

Adaptive icons - Android Developers
Design adaptive icons · Provide two layers for the color version of the icon: one for the foreground, and one for the background....
Read more >
[SOLVED] How to change back color to Android adaptive icons?
Hello, I am using the F7-CLI to create an android app. I figured out how to override my apps icon, however, Android's circle/round...
Read more >
Implementing Adaptive Icons - Medium
In Android-O, the background should fill the adaptive icon mask. If you don't update to adaptive, your shortcut icon will be scaled down...
Read more >
Adaptive Icons in Android - Steven Thewissen
In this scenario, we set the foreground drawable to the logo we just added and the background drawable to a color defined in...
Read more >
Adaptive icon background not setting correctly - MSDN
Forms. I created a PNG with no background using Android Asset Studio and added it to my project within the respective DPI folders,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found