I am attempting to use a level-list. When run, my listview is showing either nothing or the zero drawable.
I must be doing something wrong - a second set of eyes and a different brain appreciated. Here are the particulars ... level list stored as an star_levels.xml in drawable folder: <?xml version="1.0" encoding="utf-8"?> <level-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:maxLevel="0" android:drawable="@drawable/stars_0" /> <item android:maxLevel="1" android:drawable="@drawable/stars_1" /> <item android:maxLevel="2" android:drawable="@drawable/stars_2" /> <item android:maxLevel="3" android:drawable="@drawable/stars_3" /> <item android:maxLevel="4" android:drawable="@drawable/stars_4" /> <item android:maxLevel="5" android:drawable="@drawable/stars_5" /> </level-list> image view inside a relative layout: <ImageView android:id="@+id/rating" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal" android:layout_alignTop="@id/something_else" android:layout_alignParentRight="true" android:layout_marginRight="10dp" android:src="@drawable/star_levels" /> code from Adapter: @Override public void setViewImage(ImageView v, String value) { super.setViewImage(v, value); if (v.getId() == R.id.rating){ v.setImageLevel(Integer.parseInt(value)); // this returns an integer - logcat confirms this } } Thanks, j -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en