For example, I have a rating panel of 5 identical stars. When I sit down or touch any star, it changes all the stars from normal to some color, as it indicates that it is designed.
I want, is it likely that we can have 5 unique images for each star in the rating panel instead of 5 identical stars?
like the first star is the image of the sun, the second star is the image of the moon, the 3rd star is some kind of square image, etc.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <RelativeLayout android:id="@+id/rl_rating" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="30dp" > <RatingBar android:id="@+id/ratingBar" android:layout_width="wrap_content" android:layout_height="78dp" style="@style/CustomRatingBar" /> </RelativeLayout> </LinearLayout>
source share