问题标签 [ratingbar]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
android - RatingBar : 两次相同的评分
我的问题是当我再次评价相同的值时,它第二次没有响应。这意味着当我第一次评价“4”时,我第二次不能评价为“4” ..它仅在我评价其他值而不是“4”时才会响应。
这是我尝试过的(我需要getRatingBar
在我的代码中执行操作)。
提前致谢
java - Scaling RatingBar doesn't remove the frame around it
I want to use the Android RatingBar
. Works great on Tablets but on smaller screens the rating bar is huge. I read that I should use the ScaleX/ScaleY
functions and it works also great. However, it shrinks the rating stars but keeps the object wit a bigger frame.
See this example, I colored the TableRow
in green (which wrap the content) and the RatingBar
in blue
You can see that the actual stars shrink, but the frame of the original size stayed the same.
Here is an example with EditText box. I did the same thing to make sure the issue is with the RatingBar. In this image you can see that TableRow wrap the Text perfectly. (no green background)
My goal is to shrink the frame of the RatingBar to the blue frame.
android - 如何在android中制作比例评分栏?
Android 有默认的星级评分栏。但在我的项目中有规模评级栏。怎么做。请分享您的宝贵意见。有没有可能用同样的方法。下面我粘贴了示例图像。请给出你的建议。有没有可用的图书馆。
谢谢,
android - 调整评级栏中的图标大小
我正在使用三星 S3 设备和三星 Galaxy tab 2 10.1 设备在 android 中开发。
我有一个进度条,我为这两个设备使用了共享图标星,但是三星 Galaxy Tab 2 正确显示了 5 颗星,而三星 S3 设备只显示了 4 颗星,因为它们太大了。
我试过了:
- 将星星放在不同大小的资源文件夹中,但两个设备都加载 xhdpi 星星;
- 使用 minHeight 和 maxHeight 为三星 S3 设备创建不同的样式,但星星被水平切割且未调整大小;
我该怎么做才能正确调整两个设备的星星图标的大小?我真的不喜欢为每个设备创建临时星,但重用图像会很好。
非常感谢!
android - 具有自定义样式的 RatingBar 不显示
我在http://kozyr.zydako.net/2010/05/23/pretty-ratingbar/之后为 RatingBar 创建了自定义样式, 当我在 XML 文件中声明我的 RatingBar 时,这非常有效。但是,我还需要在我的 java 代码中创建动态评分栏,这就是我这样做的地方:
问题是当我以这种方式使用它们时,不会显示评分栏。这是我的自定义样式:
当我将标准的小样式用于评分栏时,相同的过程非常有效。有人知道为什么吗?
android - 在android中使用评分栏
我有评分栏
说这里面有三颗星....我有两个问题
- 如何一直显示满星?
- 如何禁用星星的编辑(分配评级的静态显示)?
android - ShapeDrawable作为Android中RatingBar的progressDrawable?
看来我无法将 ShapeDrawable 设置为 Ratingbar 的 progressDrawable。我尝试了以下但失败了:
myRatingbar 风格:
ratingbar_full.xml:
屏幕上什么都没有显示。
编辑:使用 .png 而不是 shape 适用于这一行:
@drawable/ratingbar_full
c# - Android RatingBar的MvvmCross实现
我一直在将现有应用程序转换为使用 MvvmCross (HotTuna),而我使用过的其中一个 Android 控件是 RatingBar。
我无法在此控件上进行 2 向绑定,我怀疑我应该以与 Cirrious.MvvmCross.Binding.Droid.Views 下的其他 Android 控件类似的样式实现 MvxRatingBar。
目前仅使用标准绑定我有以下代码:
我的问题是,这是解决RatingBar 等控件上双向绑定问题的推荐方法吗?
android - 如何将评分从对话框中的评分栏传递到活动的评分栏
我想将评级 - 将由用户在 DIALOG 的评级栏上设置 - 传递给活动的评级栏。(我设置了 2 个带有 2 个不同评分栏的 xml)
你能帮助(用代码)我怎么能做到这一点?提前致谢。
我需要将 onRatingChanged 方法中的内容移动到正面按钮部分的对话框中,但不知道该怎么做......
android - Ratingbar android setMax()不起作用
我有自定义的“评分栏”。
'foodRatingBar':
'评级明星':
但我遇到了下一个问题:
结果是:
r = 2.4
ns = 4
米 = 5