This is a migrated thread and some comments may be shown as answers.

Access styles.xml in NativeScript Project within AppBuilder

2 Answers 119 Views
AppBuilder Windows client
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Marc
Top achievements
Rank 1
Marc asked on 29 Jun 2016, 03:27 PM

Hello,

I had some problems showing a custom Splashscreen on Android in a NativeScript App (the Splashscreen is shown correctly on iOS without any additional steps) and finally, I found a working sample for Android, where I need to access the 'styles.xml' file to define a special theme for the Splashscreen.

Link to code sample

Managing the app locally via NativeScript CLI allows access to all platform specific files, but we manage the app via AppBuilder and I do not know how to access the styles.xml ... only AndroidManifest and Info.plist.

Can you tell me if this is possible and how to do that?

 

Regards

2 Answers, 1 is accepted

Sort by
0
Garo
Telerik team
answered on 04 Jul 2016, 12:51 PM
Hello Marc,

The sample that you found is currently the only way to add a SplashScreen for Android. That being said, to add custom code to the styles. when using AppBuilder, you should:
  1. Open your application.
  2. Navigate to app/App_Resources/Android/ and create a values folder inside.
  3. Inside the values folder, create new styles.xml file.
  4. Paste the code from the sample in this newly created file.

I hope this helps.

Regards,
Garo
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
0
Marc
Top achievements
Rank 1
answered on 04 Jul 2016, 04:26 PM

Hi Garo,

thanks for your help! I could get the Splash screen to work following your instructions.

 

Regards

Tags
AppBuilder Windows client
Asked by
Marc
Top achievements
Rank 1
Answers by
Garo
Telerik team
Marc
Top achievements
Rank 1
Share this question
or