/StartBar

自定义星星评分控件

Primary LanguageJava

"# StartBar"
1.显示评分
2.可评分
<TextView
android:padding="10px"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="带分数" />
<com.rongke.mifan.starbarapplication.StartBar
android:layout_margin="20px"
android:gravity="center_vertical"
app:is_need_score="true"
app:star_height="50"
android:id="@+id/sb_have_score"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>

     StartBar sb_have_score = (StartBar) findViewById(R.id.sb_have_score);
     sb_have_score.setCore(3);

image