# Android-CustomRatingBar **Repository Path**: kikt/Android-CustomRatingBar ## Basic Information - **Project Name**: Android-CustomRatingBar - **Description**: 一个自定义的RatingBar - **Primary Language**: Android - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 11 - **Forks**: 2 - **Created**: 2016-03-18 - **Last Updated**: 2022-03-07 ## Categories & Tags **Categories**: android-modules **Tags**: None ## README #Android-CustomRatingBar ## Custom Rating Bar --- [English doc](https://github.com/CaiJingLong/Android-CustomRatingBar/blob/master/README.md) [中文文档](https://github.com/CaiJingLong/Android-CustomRatingBar/blob/master/README-CHN.md) ## project - platform :Android - language :java - version :1.0 ### install Add it in your root build.gradle at the end of repositories: https://jitpack.io/#CaiJingLong/Android-CustomRatingBar Step 2. Add the dependency dependencies { compile 'com.github.CaiJingLong:Android-CustomRatingBar:-SNAPSHOT' } ## screenshot --- ![layout](https://b6kk3w.bn1303.livefilestore.com/y3mwprYwIaG95BSlv1QElIYWkzH7feAoYVB1mDV226lRerdjKuWP5Ijwe9sysN5-DglMglx0w0v0zWF2m3O5LRhYH8iJovE81NRejxpD1mkIMwzZYPVgbMg2zADathTXWiW80UZVubc84dyfKjnlWGU1Ckmoah__tJejbEpb9g7cr8/layout-2016-03-19-222225.png?psid=1) ### description --- extends viewgroup ### xml attribute ```xml ``` ## use --- ### xml文件 --- ```xml ``` ### use java code --- ```java void onCreate(){ mRb = findViewById(R.id.rb); mRb.setOnStarChangeListener(this); @Override public void onStarChange(CustomRatingBar ratingBar, float star) { Log.d("MainActivity", "star:" + star); } } ``` ## about me - [email](mailto:cjl_spy@163.com?subject=RatingBar-Feedback) - or issue