解决Android(安卓)自定义RatingBar 不能显示半星问题
16lz
2022-01-16
1 自定义的RatingBar 要设置style="@style/roomRatingBar" 这个参数
2 在styles 里添加 roomRatingBar
3 在drawable 里添加 star.xml
<?xml version="1.0" encoding="utf-8"?> -
-
-
4 设置 RatingBar 的参数
android:rating="1.5"android:stepSize="0.1"
更多相关文章
- Android(安卓)自定义视图
- Android中RecyclerView Adapter的骚操作
- Android中文API(138) —— RemoteViews
- Android(安卓)中文API (61) —— ViewSwitcher
- Android(安卓)开发中找不到 “gen”目录的问题
- Android(安卓)如何实现手机震动
- EditText属性解释
- mybatisplus的坑 insert标签insert into select无参数问题的解决
- Python技巧匿名函数、回调函数和高阶函数