Android RatingBar showing more than 5 stars

后端 未结 5 1058
鱼传尺愫
鱼传尺愫 2021-02-12 19:04

I want to show a rating bar via an alert dialog in my android app. The problem I am facing is that depending upon the width of the screen, the ratingbar shows more than 5 stars(

5条回答
  •  庸人自扰
    2021-02-12 19:21

    keep parent of rating bar as linear layout and keep nothing else in that linear layout, that worked for me

    This blog shows the clear picture of solution

提交回复
热议问题