1. disabled ratingbar 만들기
In XML Layout
android:isIndicator="true"
출처: https://stackoverflow.com/questions/7745020/disable-rating-on-ratingbar
Disable rating on RatingBar
I'm using a RatingBar and OnRatingBarChangeListener in my Code. The user can the rating once and after this I set ratingBar.setEnabled(false) . I want to show the user advice that he can't...
stackoverflow.com
2. ratingbar 크기 줄이기
RatingBar xml 속성에 다음과 같이 추가해준다.
style="?android:attr/ratingBarStyleSmall"
출처: https://nnoco.tistory.com/162
안드로이드 RatingBar 크기 작게
Salina Project에서 RatingBar가 아래 같은 모습으로 들어가야 하는데 기본 크기는 너무 크다 그렇다고 그냥 RatingBar의 layout_width, layout_height의 크기를 줄여버리면 이런 모습이 되어버린다. ㅡㅡ... 검..
nnoco.tistory.com
'안드로이드 노트' 카테고리의 다른 글
[안드로이드][프로젝트2] 내가 long 값을 날짜 형식으로 변환한 방법 (0) | 2022.04.30 |
---|---|
[안드로이드][프로젝트2]Firebase orderByChild descending 하는 법 (부제: recyclerView setReverseLayout(true)) (0) | 2022.04.29 |
[안드로이드][프로젝트2]BottomNavigationView 색상 변경하는 법 (0) | 2022.04.10 |
[안드로이드][프로젝트2] ratingBar 별 색깔 바꾸기 (0) | 2022.04.09 |
[안드로이드][프로젝트2] 투명한 Activity 만드는 방법 (0) | 2022.04.09 |