1

I implemented customized rating bar as explained here

How to create Custom Ratings bar in Android

but when I try to make the minHeight of the rating bar<23 I always get this result

wrong

while I wanna make a rating bar with this size enter image description here

do I have to resize the images I use in drawable according to the rating bar max and min heights or what?

Community
  • 1
  • 1
FAFI
  • 379
  • 2
  • 6
  • 21

1 Answers1

0

The problem maybe be related to the sreen resolution. Try to add this on your manifest file:

 <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.main" android:versionCode="1" android:versionName="1.0">
    <supports-screens android:smallScreens="true"
        android:normalScreens="true" android:largeScreens="true"
        android:anyDensity="true" />
...

More info here: http://www.jdamcd.com/?p=303

And you can also try setting style="?android:attr/ratingBarStyleSmall

Tiago Babo
  • 524
  • 1
  • 4
  • 9
  • do I set the style this in the main or what? I really don't get it :( – FAFI Jun 14 '11 at 23:05
  • You should put this on your AndroidManifest.xml: ` ` And if you want, o can try to set `style="?android:attr/ratingBarStyleSmall` on your layout xml file. – Tiago Babo Jun 14 '11 at 23:07
  • no the support-screens tag didn't affect my program so Iam asking about style="?android:attr – FAFI Jun 14 '11 at 23:08
  • 2
    Example: `` – Tiago Babo Jun 14 '11 at 23:11
  • can I control the width of the rating bar or the space between each star in this built-in rating bar I used or in the other rating bar I made before? – FAFI Jun 15 '11 at 14:24