Access styles.xml in NativeScript Project within AppBuilder

Thread is closed for posting
3 posts, 0 answers
  1. Marc
    Marc avatar
    101 posts
    Member since:
    Oct 2013

    Posted 29 Jun 2016 Link to this post


    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?



  2. Garo
    Garo avatar
    155 posts

    Posted 04 Jul 2016 Link to this post

    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.xml 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.


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

  3. Marc
    Marc avatar
    101 posts
    Member since:
    Oct 2013

    Posted 04 Jul 2016 in reply to Garo Link to this post

    Hi Garo,

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



Back to Top