采用android系统的评价吧 [英] Using rating bar in android

查看:127
本文介绍了采用android系统的评价吧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<RatingBar
            android:id="@+id/RATINGinitialvalueratingID"
            style="?android:attr/ratingBarStyleSmall"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_below="@+id/RATINGseekBarID"
            android:isIndicator="false"
            android:numStars="5" />

说有三颗星在这....我有两个问题


  • 如何显示全明星所有的时间?

  • 如何禁用的明星编辑(分配静态展示
    等级)?

推荐答案

尝试添加下列属性来显示5星:

Try to add the following attribute to show 5 stars:

android:rating="5"

此外,尝试添加这些使它不能编辑:

Also, try to add those to make it not editable:

android:isIndicator="true"
android:focusable="false"
android:clickable="false"

这篇关于采用android系统的评价吧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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