android required example for using ratingbar in listview

前端 未结 2 1521
眼角桃花
眼角桃花 2021-01-14 18:04

I am learning android and want a sample code or an example for using ratingbar just to display ratings and no onclick events within a listview.

I am fetching the da

2条回答
  •  Happy的楠姐
    2021-01-14 18:36

    try the following code

    
    
    RatingBar ratingBar = (RatingBar) findviewbyid(R.id.pop_ratingbar);
    ratingBar.setRating(4.0f);
    

    still if you are facing problem than prefer the following project

提交回复
热议问题