http://www.geeks.gallery/how-to-code-custom-ratingbar-in-android/
http://android-helper.blogspot.co.id/2011/06/android-custom-ratingbar-example.html
http://custom-android-dn.blogspot.co.id/2013/01/how-to-use-and-custom-ratingbar-in.html
http://android-helper.blogspot.co.id/2011/06/android-custom-ratingbar-example.html
http://custom-android-dn.blogspot.co.id/2013/01/how-to-use-and-custom-ratingbar-in.html
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.skholingua.android.custom_ratingbar.MainActivity" > <TextView android:id="@+id/textView3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/ratingBar1" android:layout_centerHorizontal="true" android:text="Default - Indicator" android:textAppearance="?android:attr/textAppearanceSmall" /> <TextView android:id="@+id/textView4" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_below="@+id/ratingBar2" android:layout_marginTop="15dp" android:text="Default - Small" android:textAppearance="?android:attr/textAppearanceSmall" /> <TextView android:id="@+id/textView2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/ratingBar3" android:layout_centerHorizontal="true" android:layout_marginTop="32dp" android:text="Custom - Only Color" android:textAppearance="?android:attr/textAppearanceSmall" /> <RatingBar android:id="@+id/ratingBar5" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_below="@+id/textView2" /> <RatingBar android:id="@+id/ratingBar2" style="?android:attr/ratingBarStyleIndicator" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/textView3" android:layout_centerHorizontal="true" /> <RatingBar android:id="@+id/ratingBar1" style="?android:attr/ratingBarStyle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_below="@+id/textView1" /> <RatingBar android:id="@+id/ratingBar3" style="?android:attr/ratingBarStyleSmall" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_below="@+id/textView4" /> <RatingBar android:id="@+id/ratingBar4" style="@style/StarRatingBar" android:layout_width="wrap_content" android:layout_height="50dp" android:layout_centerHorizontal="true" android:layout_below="@+id/textView5" /> <TextView android:id="@+id/textView6" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/ratingBar4" android:layout_centerHorizontal="true" android:text="RatingBar with only one touch" android:textAppearance="?android:attr/textAppearanceSmall" /> <RatingBar android:id="@+id/ratingBar6" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_below="@+id/textView6" /> <TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" android:layout_marginTop="29dp" android:text="Default Style" android:textAppearance="?android:attr/textAppearanceSmall" /> <TextView android:id="@+id/textView5" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/ratingBar5" android:layout_centerHorizontal="true" android:text="Custom - Images" android:textAppearance="?android:attr/textAppearanceSmall" /> </RelativeLayout>
http://www.geeks.gallery/how-to-code-custom-ratingbar-in-android/
RatingBar rate = new RatingBar();rate.setRating(2.5f);
No comments:
Post a Comment