android barre d'evaluation de la taille

J'ai enfin trouvé comment changer les images de la barre d'evaluation, mais je ne peux pas comprendre comment modifier la taille. J'ai cette

<resources>
    <style name="foodRatingBarSmall" parent="@android:style/Widget.RatingBar.Small">
        <item name="android:progressDrawable">@drawable/rating_bar_used</item>
        <item name="android:minHeight">10dip</item>
        <item name="android:maxHeight">10dip</item>
    </style>
</resources>

Mais à chaque fois que je modifie la taille de la minHeight et maxHeight il reste le même.

Ma mise en page xml:

<TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="wrap_content" android:layout_width="fill_parent" android:onClick="showRecipeOnClick" android:clickable="true" style="@style/row">

    <TableRow
            android:id="@+id/tableRow1" android:layout_gravity="center" android:layout_height="wrap_content" android:layout_width="fill_parent" android:gravity="center_vertical">
        <TextView android:id="@+id/customName"
            android:textSize="25px"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="TextView"
            android:textColor="@color/black"
            android:layout_weight="5">
        </TextView>
        <RatingBar android:id="@+id/mainRatingBar"
                   android:layout_width="wrap_content"
                   android:layout_height="wrap_content"
                   android:numStars="5"
                   android:stepSize="0.5"
                   android:isIndicator="true"
                   android:layout_gravity="center_vertical"
                   style="@style/foodRatingBarSmall"></RatingBar>
    </TableRow>
        <View android:layout_width="fill_parent"
            android:layout_height="2dip"
            android:background="@color/black"/>
    </TableLayout>

Ce que je fais mal?

Merci pour votre aide

  • Post le layout xml.
InformationsquelleAutor Bastaix | 2011-03-18