I want to reduce the size of the Rating bar, I got some style properties that do it, but they are out of the reach of user interaction they are just Indicator. So, please let me know how to reduce the size. Thanks in advance.
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
How to glue the code given here ...
Step-1. You need your own rating stars in
res/drawable
...Step-2 In
res/drawable
you needratingstars.xml
as follow ...Step-3 In
res/values
you needstyles.xml
as follow ...Step-4 In your layout ...
Try Activity ....
With this layout
product.xml
...Try changing style
I've searched through a lot of posts with the same question here and I was trying out the answer provided by @Vaibhav A. Jani, when I just stopped by a more simple solution to this question. I am not saying that @Vaibhav A. Jani answer is not correct tho.
Try this, it worked for me to see stars much smaller:
And also I was able to create lots of RatingBar dynamically, without touching any xml file, just java coding.
Reference
Working Code : You can easily reduce size of rating bar stars Just add in xml as below
android:scaleX="0.5" android:scaleY="0.5"