如何改变恒星图像的RatingBar的? [英] How to change the star images of the RatingBar?

查看:135
本文介绍了如何改变恒星图像的RatingBar的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用的Andr​​oid SDK 1.1 R1 ,是有什么办法可以修改的RatingBar Widget类的明星形象与我自己?这是可能的吗?如果是这样,那么如何?

With Android SDK 1.1 r1, is there any way to change the RatingBar widget class's star image with my own? Is this possible at all? If so, then how?

感谢。

推荐答案

简短的回答是,它看起来像它的techincally可能。最简单的方法是基于对的RatingBar源$ C ​​$ C创建自己的RatingBar(更优雅的将是延长还原最初的RatingBar到你自己的)。从那里,你还需要创建使用原始的RatingBar源XML为例(或继承和扩大原有的RatingBar风格)你自己的RatingBar的风格。

The short answer is it looks like it's techincally possible. The easiest way would be to create your own RatingBar based on the RatingBar sourcecode (more elegant would be to extend the orignal RatingBar into your own). From there you would also need to create your own RatingBar style using the original RatingBar source xml as an example (or inheriting and extending the original RatingBar style).

来源可wtih蠢货developer.android.com。

Source is available wtih git at developer.android.com.

我怀疑使自己的等级吧是气馁,因为它违背了一致的外观操作系统和感觉。

I suspect making your own rating bar is discouraged since it goes against the consistent look and feel of the OS.

这篇关于如何改变恒星图像的RatingBar的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆