본문 바로가기

안드로이드 노트

[안드로이드][프로젝트2] disabled ratingbar 만들기 + ratingbar 크기 줄이기

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