Change android theme from cordova config.xml

前端 未结 4 1684
南笙
南笙 2020-12-17 03:18

At my company we are using Ionic Framework and Cordova to create our mobile app, and upon starting the design of the app, we encountered an issue with the Android theme and

4条回答
  •  青春惊慌失措
    2020-12-17 03:29

    I know I'm late, but cordova-custom-config plugin made just to "update platform configuration files based on preferences and config-file data defined in config.xml."

    for example:

    1. install the cordova-custom-config plugin: cordova plugin add cordova-custom-config --save

    2. Config.xml:

    This will add the attribute "android:theme" to your AndroidManfiset --> application --> activity with the value: @android:style/Theme.Holo.

提交回复
热议问题