Advertisement
ThreeYulianto

Rating Bar XML

Jan 17th, 2020
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.97 KB | None | 0 0
  1. <RatingBar
  2.        android:id="@+id/ratingBar1"
  3.        android:layout_width="wrap_content"
  4.        android:layout_height="wrap_content"
  5.        android:layout_marginLeft="80dp"
  6.        android:layout_marginTop="200dp"
  7.        android:numStars="5"
  8.        android:rating="3.5"/>
  9.     <Button
  10.        android:id="@+id/btnGet"
  11.        android:layout_width="wrap_content"
  12.        android:layout_height="wrap_content"
  13.        android:layout_alignLeft="@+id/ratingBar1"
  14.        android:layout_below="@+id/ratingBar1"
  15.        android:layout_marginTop="30dp"
  16.        android:layout_marginLeft="60dp"
  17.        android:text="Get Rating"/>
  18.     <TextView
  19.        android:id="@+id/textview1"
  20.        android:layout_width="wrap_content"
  21.        android:layout_height="wrap_content"
  22.        android:layout_alignLeft="@+id/btnGet"
  23.        android:layout_below="@+id/btnGet"
  24.        android:layout_marginTop="20dp"
  25.        android:textSize="20dp"
  26.        android:textStyle="bold"/>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement