1.1.2 • Published 5 years ago

cordova-plugin-window-background v1.1.2

Weekly downloads
39
License
MIT
Repository
github
Last release
5 years ago

:art: cordova-plugin-window-background

Latest Stable Version Total Downloads

This is a simple plugin for Android which will set the window background color for you app's MainActivity to a color of your choice. This allows you to avoid the standard dark grey background which will flash for a second before your splash screen appears. Set the color to the same background as your splash screen for a smoother start-up effect.

Installation

You'll need to set your desired window background color while installing the plugin by supplying the WINDOW_BACKGROUND_COLOR variable. Set it to whatever you want, preferably the same color as your splash screen.

cordova plugin add cordova-plugin-window-background --variable WINDOW_BACKGROUND_COLOR=#ffffff --save

Or install directly from this repo:

cordova plugin add https://github.com/douglaszaltron/cordova-plugin-window-background.git --variable WINDOW_BACKGROUND_COLOR=#ffffff --save

Supported Platforms

  • Android (cordova-android 6.0.0+)

Configuration

A custom WINDOW_BACKGROUND_COLOR variable will be added to your app's config.xml after installation with the value you selected (provided you included the --save flag).