Software Archive
Read-only legacy content
17061 Discussions

Android - set style in manifest file for build

Henning_S_
Beginner
1,383 Views

We have an issue where our app on Android is using the old style/theme and list boxes show up badly. When you do a Cordova App through the Intel XDK it seems to default to 

android:theme="@android:style/Theme.Black.NoTitleBar"  

in the manifest file. Is it possible to change this using the intelxdk.config.additions.xml or some other way to set it to use 

android:theme="@android:style/Theme.Holo.NoActionBar"

Thanks, Henning

0 Kudos
7 Replies
Henning_S_
Beginner
1,383 Views

Any comments/suggestions on how to get around this?

0 Kudos
Anusha_M_Intel1
Employee
1,383 Views

Please see if http://app-framework-software.intel.com/documentation.php#afui/afui_themes is of help to you. 

0 Kudos
Henning_S_
Beginner
1,383 Views

This does not help. We are not using the AppFramework UI. It is just a pure native HTML5 cordova app and we need to be able to change the build settings for the android manifest file to switch to the newer theme.

0 Kudos
Miguel_Q_
Beginner
1,383 Views

Exactly, this would be great if we could on the build decide which theme to use! is just modify the manifest for android with our options!

 

PLeaseeeeee!

0 Kudos
Miguel_Q_
Beginner
1,383 Views

Please help...

 

otherwise things like this will happen.. and i will eventually change to android studio to go on the build process and be able to modify the manifest file by my own, since we dont have access to xdk manifest customization.

 

The picture i attached for example, you can see, there is a mix of styles going on.. 

When on XDk debug mode everything is okay, but when you build, result is different from Debug... this XDK build can be imprevisible!

 

 

0 Kudos
PaulF_IntelCorp
Employee
1,383 Views

There is no way to control this in the current version of the XDK. A feature request has been made, but no promise as to when and if that feature will be implemented. The Cordova build system is not flexible enough, at this time, to easily accommodate your request.

0 Kudos
Miguel_Q_
Beginner
1,383 Views

Paul F. (Intel) wrote:

There is no way to control this in the current version of the XDK. A feature request has been made, but no promise as to when and if that feature will be implemented. The Cordova build system is not flexible enough, at this time, to easily accommodate your request.

But this has nothing to do with cordova, you should just let build option have that option, an then the program during build will append that preference to the manifest file... you do use a manifest file right?

Otherwise i have to switch to Android Studio again!  I used XDK before, but just for IOS apps, because of this limitation, and have to use AndroidStudio do compile the APK, and then we are able to customize the manifest.xml

 

And let me say this, when i try the app running debug mode, and the file is sent to the mobile, the theme is ok! and correct! But the build result is not! So you should upgrade your manifest file standard to device default theme ( on the build side) which i cannot control.

0 Kudos
Reply