Ich versuche, eine Bewertungsleiste mit benutzerdefinierten Bild für Sterne zu erstellen. Ich habe Code von einer Website und funktioniert perfekt mit den Bildern des Autors. Aber sobald ich mit meinen seine Bilder ersetzen (sie haben genau das gleiche Format und Abmessungen) funktioniert es nicht die gleiche ....Android benutzerdefinierte Bewertung Bar Problem
hier ist die rating_bar.xml
<item
android:id="@+android:id/background"
android:drawable="@drawable/rating_empty"/>
<item
android:id="@+android:id/secondaryProgress"
android:drawable="@drawable/rating_empty"/>
<item
android:id="@+android:id/progress"
android:drawable="@drawable/rating_full"/>
styles.xml
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
<style name="StarRatingBar" parent="@android:style/Widget.RatingBar">
<item name="android:progressDrawable">@drawable/rating_bar</item>
<item name="android:minHeight">48dip</item>
<item name="android:maxHeight">48dip</item>
</style>
activity_main.xml
<RatingBar
android:id="@+id/ratingBar4"
style="@style/StarRatingBar"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:numStars="5"
android:layout_centerHorizontal="true" />
Artikel Bilder
Meine Bilder
Hat jemand eine Erklärung? Und ja, ich gesucht wirklich viel zu diesem Thema und die „populären“ SO Antworten auf ähnliche Frage nicht passend sind zu meinem Problem