Coder Social home page Coder Social logo

cordova-plugin-statusbarcolor's Introduction

Status Bar Color Cordova Plugin For Android Lollipop

Installation

Prerequsites

This must be compiled at Android API level 21 or higher which means you'll have to be using cordova-android v3.7.1 or higher. The latest version of cordova-cli does not use cordova-android 3.7.1, so to manually install run the following:

cordova platform remove android
cordova platform add [email protected]

config.xml

The plugin supports any string from android.graphics.Color.parseColor(), but to ensure compatibility with cordova-plugin-statusbar make sure to use a hex string in the format #RRGGBB.

set the preference StatusBarBackgroundColor (also used by cordova-plugin-statusbar)

<preference name="StatusBarBackgroundColor" value="#BD3138" />

License

The MIT License (MIT)

Copyright (c) 2015 internrocket, inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

cordova-plugin-statusbarcolor's People

Contributors

brainbacon avatar

Stargazers

Max avatar Leonardo Ruhland avatar Dan Jarvis avatar Dmitry Sokurenko avatar Pacotole avatar  avatar George Thayamkery avatar Martin avatar Jimmy Hsu avatar Hugh Isaacs II avatar Gaurav Jassal avatar Blayne Allan Stewart avatar Abdullah Norozi Iranzad avatar

Watchers

Cody Sherman avatar James Cloos avatar  avatar Michael Somers avatar Jon Harris avatar

cordova-plugin-statusbarcolor's Issues

Phonegap Build

Is there any way to use this plugin with Phonegap Build?
Sadly the cordova-plugin-statusbar plugin still only supports iOS and not Android.

Allow dynamic setting of activity header color

It would be awesome if you added a function like StatusBarColor.activityColor() so I could set the color dynamically from my app's JavaScript, like cordova-plugin-statusbar.

My app has a feature to change the theme on the fly, so I need a way to dynamically update the color when the user chooses a different theme.

Update docs for new version of cordova-android

The latest cordova cli has been updated with a version of cordova-android that supports Android Lollipop, and as a result the manual update of the platform is no longer necessary and should be removed from the docs.

Publish to NPM

It would be neat if you could either publish this plugin on the Cordova NPM repository or alternatively open a pull request into cordova-plugin-statusbar to add the functionality to theme the header in the multi-task view.

The reason I ask: I'm using PhoneGap Build for my app, and as far as I know there isn't an easy way to include a plugin that's not available through the NPM repository.

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.