0

I want to apply styles to rating bar in xamarin.android project.

I have two images in my drawable folder i.e. grayStar and orangeStar.

I have referred a solution given in the post

How to create Custom Ratings bar in Android

but my project is returning error i.e

No resource found that matches the given name (at 'android:progressDrawable' with value '@drawable/DrawableRatingBar'

can anyone tell me, where I have done mistakes?

Community
  • 1
  • 1
Suraj
  • 433
  • 1
  • 7
  • 20

2 Answers2

0

Try checking the Images Build action, sometimes when using Visual studio an images build action can be set to BundleResource. it should be set to AndroidResource

Sample

InitLipton
  • 2,395
  • 5
  • 30
  • 47
0

The drawable name should be in lowercase, im pretty sure that solves your problem.

Casper Skoubo
  • 310
  • 2
  • 9