Coder Social home page Coder Social logo

cordova-plugin-window-background's Introduction

๐ŸŽจ 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).

cordova-plugin-window-background's People

Contributors

douglaszaltron avatar kkordinia avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cordova-plugin-window-background's Issues

Doesn't work on Phonegap Build

It doesn't work on Phonegap Build cli-7.1.0 (Android Cordova 6.3.0). After the following additions to config.xml the 1 second gray screen (before splashscreen) is still there.

<plugin name="cordova-plugin-window-background" spec="*">
	<variable name="WINDOW_BACKGROUND_COLOR" value="#0078d7" />
</plugin>

Also I tried to added the following, but with no effect:

<preference name="WINDOW_BACKGROUND_COLOR" value="#0078d7" />

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.