I am writing an Android app that is going to use the RatingsBar. The problem is the RatingsBar is not scalable. What I mean by this is the images that are used to render the starts are of a fixed size. To make the widget smaller, you use smaller images. To make the widget larger, you use larger images. I haven't found a good way to use one image and have Android scale that image to the size of the widget.
In my app, I have a ListView that contains the RatingBar in each list item. With limited real estate, I wanted the RatingsBar to look smaller. I also had a blue background, so I made the stars yellow. While I felt it was important, it wasn't the most important piece of information in the list item. When you click on the list item, another activity comes up. Since that activity is dedicated to the item, I have a lot more screen real estate. In that screen, I used the bundled Android images. My wife complained. The RatingsBar in the details screen didn't look as good as the one in the list view. She wanted them to look the same....just scaled differently. I fired up Gimp and created another set of star images for that size. Luckily I only have two sizes to display. It would be nice if I could just have one set of images, though.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.