开发者

Problem with custom rating bar in android

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

Problem with custom rating bar in android

while I wanna make a rating bar with this size

Problem with custom rating bar in android

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜