I created custom rating bar. I set default small rating bar in app. But the stars gaps are none. How to make gaps in each stars? I can give my xml file code given below:
customratingbar.xml:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@android:id/background"
android:drawable="@drawable/ic_star_normal"
></item>
<item
android:id="@android:id/secondaryProgress"
android:drawable="@drawable/ic_star_selected"></item>
<item
android:id="@android:id/progress"
android:drawable="@drawable/ic_star_selected"></item>
</layer-list>
Styles.xml:
<style name="CustomRating" parent="android:style/Widget.Material.RatingBar.Small">
<item name="android:progressDrawable">@drawable/custom_ratingbar</item>
<item name="android:paddingBottom">4dip</item>
<item name="android:layout_marginLeft">4dip</item>
<item name="android:layout_marginRight">5dip</item>
<item name="android:layout_marginTop">4dip</item>
</style>
what mistake I make it? I don't know. How can I solve this? I beginner I don't know that.