Comments (3)
same problem. emptyColor does not work on Android.
after digging some more it turns out that Android code hardcodes emptyColor to white and ignores the css property set on the component.
a quick and dirty fix for this is to change line 40 in star-ratings.android.js file to change the hardcoded value of 'white' to whatever emptyColor you want (i used '#ECECEC').
to the author, please remove the hardcoded value.
from nativescript-star-ratings.
Same issue I was facing on Nokia 6.0
from nativescript-star-ratings.
same problem. emptyColor does not work on Android.
after digging some more it turns out that Android code hardcodes emptyColor to white and ignores the css property set on the component.
a quick and dirty fix for this is to change line 40 in star-ratings.android.js file to change the hardcoded value of 'white' to whatever emptyColor you want (i used '#ECECEC').to the author, please remove the hardcoded value.
Well I tried a different thing, I replaced the 'white' from color variable and now I just pass the hex value in the component and it's working.
<StarRating horizontalAlignment="center" verticalAlignment="center" row="5" col="0" colSpan="2" emptyBorderColor="white" emptyColor="#D355D3" filledBorderColor="black" filledColor="red" value="2" max="5"></StarRating>
from nativescript-star-ratings.
Related Issues (17)
- Capture target action change event from iOS HOT 1
- Android Support? HOT 2
- Fixed Stars HOT 4
- demo not working
- max value doesn't work HOT 2
- Size of the stars HOT 11
- StarRatings: Support for Angular 5? HOT 1
- How to set the maximum number of stars HOT 2
- Not able to get values of stars on code behind HOT 1
- can add editable false? HOT 3
- Update the README if plugin can be used for nativescript core.
- Plugin not cloud-building on iOS nativescript sidekick HOT 2
- Star rating emptyColor wont change! HOT 1
- Nativescript 7 upgrade HOT 2
- can't build ios after new cosmos library release HOT 12
- filledColor not showing in Android.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nativescript-star-ratings.