Android Oreo - how do I set Adaptive Icons in Cordova?

前端 未结 9 1670
死守一世寂寞
死守一世寂寞 2020-12-24 13:57

Just wondering if anyone been able to set adaptive icons on Cordova for Android Oreo? I\'m using the android 6.4.0 and my square icon shrinks to fit the circle. I just want

9条回答
  •  没有蜡笔的小新
    2020-12-24 14:39

    So here's an update for Ionic v4 and Cordova Android: 6.4.0. Notable changes to 0x6368656174's answer were:

    • Removing app/src/main from the resource targets.
    • My background.xml was in a values folder (i did not have a foreground as i used a png)
    • The edit-config Manifest file location is in the same directory file="AndroidManifest.xml"

    I struggled for a few days but this is what works for me:

    config.xml

    
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
             
        
            
    
    

    PHEW

提交回复
热议问题