8

Unable to set rating for RatingBar

view full story
linux-howto

http://stackoverflow.com – I'm tring to create a RatingBar and it does not seem to be working. There appears to be two problems. First of all, when I don't try to do anything to it all in Java such as setRating() the rating stars appear but over 20 stars appear with 5 set. On the other hand, when I try to call setRating() it crashes with a NullPointerException. I am displaying the ratings along with other information inside a popup window if that makes any difference. This is the xml. Take note of difficultyPopup and terrainPopup: <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:la (HowTos)