简体   繁体   中英

RatingBar long press(android)

Sorry for my English. I use RatingBar but when it is pinched, it stands out. How do I remove it? Example image:

在此处输入图片说明

my xml

    <RatingBar
        android:id="@+id/startBar"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center_horizontal"
        android:stepSize="1"
        android:layout_marginTop="30dp" />

You can use the setRating(float rating) user to set the rating (the number of stars filled)

See RatingBar Class Documentation here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM