[android-developers] Custom RatingBar Implementation
Hi all, i followed this article Pretty Rating Barhttp://kozyr.zydako.net/2010/05/23/pretty-ratingbar/ and it's working fine when i extends the @android:style/Widget.RatingBar. But when i try to extend the @android:style/Widget.RatingBar.Small the eclipse IDE points an error saying that are 'no resources found that matches the given name' Below is the code snipet style name=musicRatingBarSmall parent=@android:style/Widget.RatingBar.Small item name=android:progressDrawable@drawable/rating_music/item item name=android:minHeight20dip/item item name=android:maxHeight25dip/item /style Does anyone knows the solution for this problem? I'm using the google api's for android 2.1 as the target. -- Saulo Aguiar GREat - Grupo de Redes de Computadores, Engenharia de Software e Sistemas. Computação UFC Linux user #500790 sauloagu...@great.ufc.br -- 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
Re: [android-developers] Custom RatingBar Implementation
See the solution listed in http://code.google.com/p/android/issues/detail?id=18659 (and in particular see Xav's comment, #8). -- Tor On Tue, Aug 2, 2011 at 12:10 PM, Saulo Aguiar sauloaguia...@gmail.com wrote: Hi all, i followed this article Pretty Rating Bar and it's working fine when i extends the @android:style/Widget.RatingBar. But when i try to extend the @android:style/Widget.RatingBar.Small the eclipse IDE points an error saying that are 'no resources found that matches the given name' Below is the code snipet style name=musicRatingBarSmall parent=@android:style/Widget.RatingBar.Small item name=android:progressDrawable@drawable/rating_music/item item name=android:minHeight20dip/item item name=android:maxHeight25dip/item /style Does anyone knows the solution for this problem? I'm using the google api's for android 2.1 as the target. -- Saulo Aguiar GREat - Grupo de Redes de Computadores, Engenharia de Software e Sistemas. Computação UFC Linux user #500790 sauloagu...@great.ufc.br -- 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 -- 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
[android-developers] Custom RatingBar
Hi, I wanted to use a different image for the rating bar. I tried to do this by extending the RatingBar widget style. ?xml version=1.0 encoding=utf-8? resources style name=myRatingBar parent=@android:style/Widget.RatingBar item name=android:progressDrawable@drawable/star_full/ item item name=android:indeterminateDrawable@drawable/ star_full/item /style /resources But, the resultant rating bar had some additional bleeding effect. The stars looked like they were bleeding and it was not the same as the custom images I had added. Also, how can we add the custom empty and half stars? Thank you, AJ -- 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