本文介绍了是否有可能改变的RatingBar方向?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道,如果可能使从的RatingBar权去到左,而不是从左到右,或有一个想法,该怎么办呢?

Does anyone knows if its possible to make the RatingBar go from right-to-Left instead of left to right, or have an idea how to do it?

推荐答案

您必须自定义的RatingBar ..

然而,你只是有显示的RatingBar 图片及玩把戏;然后某种反向计算。

However you just have to play tricks with displaying RatingBar Images & then some sort of reverse calculations.

天雷将要的RatingBar反向显示图像..掉选中和未选中图像的RatingBar。

Trick will be displaying reverse Images in RatingBar.. swap selected and unselected images in RatingBar.

允许用户速率对的RatingBar 。你必须换选中和未选中计算。我的意思是你必须做的反向计算。

Allow user to rate on RatingBar. You have to swap selected and unselected calculations. I mean you have to do reverse calculations.

自定义的完整工作示例的RatingBar 的StackOverflow由我只回答了。

Complete Working example of custom RatingBar on StackOverflow answered by me only.

下载的RatingBar 从这里图标:的

这篇关于是否有可能改变的RatingBar方向?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-11 22:47