03.
android:layout_width
=
"match_parent"
04.
android:layout_height
=
"match_parent"
>
05.
06.
<
TextView
07.
android:id
=
"@+id/textView1"
08.
android:layout_width
=
"wrap_content"
09.
android:layout_height
=
"wrap_content"
10.
android:layout_alignParentTop
=
"true"
11.
android:layout_centerHorizontal
=
"true"
12.
android:layout_marginTop
=
"46dp"
13.
android:text
=
"Default RatingBar"
/>
14.
15.
<
RatingBar
16.
android:id
=
"@+id/ratingBar1"
17.
android:layout_width
=
"wrap_content"
18.
android:layout_height
=
"wrap_content"
19.
android:layout_below
=
"@+id/textView1"
20.
android:layout_centerHorizontal
=
"true"
21.
android:layout_marginTop
=
"25dp"
/>
22.
23.
<
TextView
24.
android:id
=
"@+id/textView2"
25.
android:layout_width
=
"wrap_content"
26.
android:layout_height
=
"wrap_content"
27.
android:layout_below
=
"@+id/ratingBar1"
28.
android:layout_centerHorizontal
=
"true"
29.
android:layout_marginTop
=
"54dp"
30.
android:text
=
"Custom RatingBar"
/>
31.
32.
<
RatingBar
33.
android:id
=
"@+id/ratingBar2"
34.
style
=
"@style/styleRatingBar"
35.
android:layout_width
=
"wrap_content"
36.
android:layout_height
=
"wrap_content"
37.
android:layout_below
=
"@+id/textView2"
38.
android:layout_centerHorizontal
=
"true"
39.
android:layout_marginTop
=
"22dp"
/>
40.
41.
</
RelativeLayout
>