zhanghai/MaterialRatingBar

Couldn't fully drag to remove rating

Closed this issue · 5 comments

I don't know if it's bug or intentional. But i can't remove rating unless i give some margin to the view.

    <me.zhanghai.android.materialratingbar.MaterialRatingBar
        style="@style/Widget.MaterialRatingBar.RatingBar"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent" />

Can you reproduce this with the sample app?

Meanwhile, if you replace it with a framework standard RatingBar, can you reproduce the same issue?

@zhanghai I tested the standard one the issue is same also :(

    <androidx.appcompat.widget.AppCompatRatingBar
        style="@style/Widget.AppCompat.RatingBar"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

Giving at least 1dp margin fix it.

    <me.zhanghai.android.materialratingbar.MaterialRatingBar
        style="@style/Widget.MaterialRatingBar.RatingBar"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginLeft="1dp"
        android:layout_marginRight="1dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

If you reproduced the bug with framework RatingBar (or the AppCompat one), then it's an Android bug and you should file a bug on AOSP bug tracker.