我之前的不起作用的代码是这样的 显示的是多余7颗星 后面才发现把layout_width="match_content"改成layout_width="wrap_content"就好了 显示的就是7颗星。over