Android – ratingbar is customized, and the size of each rating element increases

I know I can apply my own style and replace the star image of the rating bar with something else. I need something more complicated: each ratingbar element should be larger than before

Look at the picture:

Is it possible?

resolvent:

We can expand the rating bar, keep the height of the bar proportional to the highest star, and set the height of each star in OnDraw

It looks like a starting point, starbar

This link is also very interesting, although it only solves the exchange problem of drawables part. @ L_ 502_ 1@

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>