Open teckloide opened 6 years ago
Especially in Android
@teckloide @labidiaymen Were you able to set the size of stars?
@cerireyhan Nope
is this still being developed? Any idea how we can extend this to be able to change the size of the stars
I am also interested into making stars smaller. Is this plugin still in development?
You may use android:scaleX=".5" android:scaleY=".5"
on the element for example. You'll need to tweak the extra padding.
You'll need to tweak the extra padding.
@topclaudy Any ideas on how do to that?
tried using android:scale as mentioned above but the whole component gets scaled and it loses the 5th start. only 4 stars are visible. i've tried all sorts of ways to increase the width of the scaled component to show the 5th start but nothing worked. has anybody figured this out?
After digging some more the size of stars on Android is set by the native component and can't be changed without losing interactivity. The only solution is to change the layout to have the stars on it's own line.
A RatingBar is an extension of SeekBar and ProgressBar that shows a rating in stars.
The user can touch/drag or use arrow keys to set the rating when using the default size RatingBar.
The smaller RatingBar style ( R.attr.ratingBarStyleSmall) and the larger indicator-only style (R.attr.ratingBarStyleIndicator) do not support user interaction and should only be used as indicators.
When using a RatingBar that supports user interaction, placing widgets to the left or right of the RatingBar is discouraged.
-- you can change the star size -- platforms > ios > Pods > Cosmos > Cosmos > CosmosDefaultSettings.swift /// Size of a single star. static var starSize: Double = 20
-- you can change the star size -- platforms > ios > Pods > Cosmos > Cosmos > CosmosDefaultSettings.swift /// Size of a single star. static var starSize: Double = 20
Is this really a solution though??
any updates on this issue?
Make sure to check the demo app(s) for sample usage
checked
Make sure to check the existing issues in this repository
checked
If the demo apps cannot help and there is no issue for your problem, tell us about it
how can i modify the size of the stars
Which platform(s) does your issue occur on?
Please, provide the following version numbers that your issue occurs with:
Please, tell us how to recreate the issue in as much detail as possible.
just use it as the instructions says it should be used