设置显示总星数 | app:srb_numberOfStars/setNumberOfStars(int) |
设置选中星数 | app:srb_rating / 设置评级setRating(float) |
设置步长 | app:srb_stepSize/ setStepSize(float) |
设置星星大小 | app:srb_starSize/ setStarSize(float) |
设置最大星号 | app:srb_maxStarSize/ setMaxStarSize(float) |
设置边框宽度 | app:srb_starsSeparation/ setStarsSeparation(float) |
设置边框宽度 | app:srb_starBorderWidth/ setStarBorderWidth(float) |
设置星角半径 | app:srb_starCornerRadius/ setStarCornerRadius(float) |
设置正常状态下的星形边框颜色 | app:srb_borderColor/ setBorderColor(@ColorInt int) |
用正常状态设置星星填充颜色用 | app:srb_fillColor/ setFillColor(@ColorInt int) |
用正常状态设置星星背景颜色 | app:srb_starBackgroundColor/setStarBackgroundColor(@ColorInt int) |
设置正常状态下额定条的背景颜色 | app:srb_backgroundColor/ setBackgroundColor(@ColorInt int) |
在按下状态设置星级边框颜色 | app:srb_pressedBorderColor/setPressedBorderColor(@ColorInt int) |
设置星形填充颜色处于按下状态 | app:srb_pressedFillColor/setPressedFillColor(@ColorInt int) |
在压制状态下设置星星背景颜色 | app:srb_pressedStarBackgroundColor/setPressedStarBackgroundColor(@ColorInt int) |
用压力状态设置额定条的背景颜色 | app:srb_pressedBackgroundColor/setPressedBackgroundColor(@ColorInt int) |
启用/禁用用户的交互 | app:srb_isIndicator/setIsIndicator(boolean) |
启用/禁用星形边框 | app:srb_drawBorderEnabled/ setDrawBorderEnabled(boolean) |
设置填充方向(左或右) | app:srb_gravity/ setGravity(Gravity) |
得到已选中星星的个数 | getRating() |
得到一共有多少颗星星 | getNumberOfStars() |