开发者

RatingBar customization with each rating element of increased size

I know that I can apply my own style and swap the ratingbar star image with something else. I need a bit more complicated thing: each ratingbar element should be larger than previous.

Take a loo开发者_如何转开发k at the image:

RatingBar customization with each rating element of increased size

Is it possible?


we can extend the Rating bar, keep the height of the bar proportional to the tallest star and in the onDraw set the height of each star.

this looks some place to start. StarBar

this link was interesting as well, though it only solves the swapping of drawables part. LINK


I'd think about own RattingBar, it would be linear layout, and in it a I would create views that has proper size. On increasing rate I would be adding more childs, and scale child views. Looks easy, probably not most efficient way, but still very flexible.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜