Use a CompoundButton.

On Apr 5, 2:57 am, ramindroid <singhramin...@gmail.com> wrote:
> Any update on this?
>
> On Apr 4, 7:35 pm, ramindroid <singhramin...@gmail.com> wrote:
>
>
>
> > Hi,
>
> > I tried implementing the Favourite functionaity for any Contacts using
> > the RatingBar (having one Star).
> > I set the rating a 0.0 initially (with stepSize as 1.0). On clicking,
> > the star gets rating 1 (turns green) but further click to make it 0 is
> > not working ( on setting stepSize as 0.5, Its getting 0-> 0.5 -> 1.0 -> 
> > 0.5... but not to zero).
>
> > I tried using onClickListener but its still not executing onClick().
> > So my question is: Is this possible to achieve using RatingBar? To
> > implement the same, what another/best appraoch?
> > * I tried having two images in the listItem and on clicking ...
> > changin to another... but i want to have standard look n feel as
> > setting a favourite contact.
>
> > Please provide the inputs.
>
> > thanks.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to