title: why is my rating bar not changing on user touch?
body: <p>I have tried to add a rating bar to my activity</p>
  
  <p>but I cannot add or remove stars on user's touch.</p>
  
  <p>what should i add?</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:gravity="center"
      android:orientation="vertical" &gt;
  
      &lt;LinearLayout
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:orientation="horizontal" &gt;
  
          &lt;TextView
              android:id="@+id/TextView01"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="@string/feedback" /&gt;
      &lt;/LinearLayout&gt;
  
      &lt;View
          android:layout_width="wrap_content"
          android:layout_height="30dp" /&gt;
  
      &lt;RelativeLayout
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginLeft="10dp"
          android:layout_marginRight="10dp" &gt;
  
          &lt;RatingBar
              android:id="@+id/serviceRatingBar"
              style="?android:attr/ratingBarStyleIndicator"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignParentRight="true" /&gt;
  
          &lt;TextView
              android:id="@+id/price"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignParentLeft="true"
              android:layout_centerVertical="true"
              android:text="@string/service" /&gt;
      &lt;/RelativeLayout&gt;
  
  
      &lt;LinearLayout 
                   android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:orientation="horizontal"
          &gt;
             &lt;Button
          android:id="@+id/sendBtn"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="@string/send" /&gt;
  
          &lt;Button
          android:id="@+id/cancelBtn"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="@string/cancel" /&gt;
  
  
      &lt;/LinearLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>