Android7.0中文API -- RatingBar
来源:互联网 发布:达内java培训北京校区 编辑:程序博客网 时间:2024/06/05 00:27
完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/RatingBar.html
RatingBar
public class RatingBar
extendsAbsSeekBar
A RatingBar is an extension of SeekBar and ProgressBar that shows a rating in stars. The user can touch/drag or use arrow keys to set the rating when using the default size RatingBar. The smaller RatingBar style (ratingBarStyleSmall
) and the larger indicator-only style (ratingBarStyleIndicator
) do not support user interaction and should only be used as indicators.
RatingBar是SeekBar和ProgressBar的扩展,它显示了以星的形式表示的评级。当使用默认大小的RatingBar时,用户可以通过触摸,拖动或使用箭头按键,开设置评级较小的RatingBar的样式(ratingBarStyleSmall
)和较大的指示器样式(ratingBarStyleIndicator
)不支持用户交互,应只作为指示器使用。
When using a RatingBar that supports user interaction, placing widgets to the left or right of the RatingBar is discouraged.
当使用一个支持用户交互的RatingBar时,不建议在RatingBar的左边或右边放置控件。
The number of stars set (via setNumStars(int)
or in an XML layout) will be shown when the layout width is set to wrap content (if another layout width is set, the results may be unpredictable).
当布局宽度设置为WRAP_CONTENT时(如果设置了另一个布局宽度,结果可能是不可预测的),设置的星星数(通过setNumStars(int)
或在一个XML布局中)将被显示。
The secondary progress should not be modified by the client as it is used internally as the background for a fractionally filled star.
次要的进展不应该被使用者告别,因为它用于内部的一个小星星的背景。
摘要
嵌套类
interface
RatingBar.OnRatingBarChangeListener
A callback that notifies clients when the rating has been changed.
一个回调,当评级已发生改变时,通知RatingBar的使用者。
XML属性
android:isIndicator
此RatingBar是否是一个指示器(用户无法进行更改)。 android:numStars
要显示的星数 (或评级项)。 android:rating
默认评级值。 android:stepSize
评级的步长。 继承XML属性
android.widget.AbsSeekBar
android.widget.ProgressBar
android.view.View
继承常量
android.view.View
继承字段
android.view.View
Public构造方法
RatingBar(Context context, AttributeSet attrs, int defStyleAttr)
RatingBar(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
RatingBar(Context context, AttributeSet attrs)
RatingBar(Context context)
Public方法
完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/RatingBar.html
- Android7.0中文API -- RatingBar
- Android7.0中文API---ImageButton
- Android7.0 中文API -- ZoomButton
- Android7.0中文API --- ImageView
- Android7.0中文API -- ListView
- android7.0中文API -- LinearLayout
- Android7.0中文API -- TableLayout
- Android7.0中文API -- TableRow
- Android7.0中文API -- ZoomControls
- Android7.0中文API -- TabWidget
- Android7.0中文API -- ActionMenuView
- Android7.0中文API -- RadioGroup
- Android7.0中文API -- SearchView
- Android7.0中文API -- SeekBar
- Android7.0中文API -- ProgressBar
- Android7.0中文API --- AbsSeekBar
- Android7.0中文API -- Spinner
- Android7.0中文API -- AbsSpinner
- 应用签名不一致,该应用可能被篡改的问题
- Python第三方库——Matplotlib_子图共享坐标轴
- C++如何将2个BYTE数据转化为1个BYTE
- 31.退出功能-活动实践
- wireshark抓包分析--测试网站登录
- Android7.0中文API -- RatingBar
- LeetCode 49. Group Anagrams
- EPPLUS 操作ExcelC#
- Map集合的遍历方法
- Web应用开发周期
- 【Linux】使用gdb调试多进程多线程程序
- 测试一下Blog
- Android高手的6个境界
- Java对象实例化(匿名内部类)