I implemented customized rating bar as explained here
How to create Custom Ratings bar in Android
but when I try to make the minHe开发者_高级运维ight of the rating bar<23 I always get this result
while I wanna make a rating bar with this size
do I have to resize the images I use in drawable according to the rating bar max and min heights or what?
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
精彩评论