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

前端 未结 9 1671
死守一世寂寞
死守一世寂寞 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:41

    You will first need to update Cordova to 7.0. Cordova 7.0 gives support for Android Oreo. Once you have created an app using Cordova 7, then you will have to manually create the adaptive icons using the native Android code. This Medium blog will help you with that. Once you have created your Adaptive Icons, you can add them to your config.xml like this -

    
        
        
        
        
        
        
        
    
    

提交回复
热议问题