0
我想保存評級欄評級星級的狀態?我將如何去做這件事? 以及我如何去獲得用戶選擇的星星數量?在textView中顯示? 感謝如何使用評分欄?
我想保存評級欄評級星級的狀態?我將如何去做這件事? 以及我如何去獲得用戶選擇的星星數量?在textView中顯示? 感謝如何使用評分欄?
從developer.android.com:
http://developer.android.com/resources/tutorials/views/hello-formstuff.html#RatingBar
其他例子這裏..
http://android-er.blogspot.com/2010/02/ratingbar.html
如果你想定製的RatingBar如。顯示除默認外的其他圖像Star 參考How to create Custom Ratings bar in Android
此示例顯示Toast
消息,當用戶選擇評級時。 &很明顯,您將不得不根據您的需要對其進行自定義(正如您所說的,您希望在TextView中顯示它)。
您可以在xml文件中定義一個TextView
&當評級已更改時設置其文本屬性。
試試官方的[教程](http://developer.android.com/resources/tutorials/views/hello-formstuff.html)。 – Mudassir