Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6533807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:10:24+00:00 2026-05-25T10:10:24+00:00

I have an android rating bar in my app, and it only displays int

  • 0

I have an android rating bar in my app, and it only displays int ratings.

For example:

float ratingValue = 1.5f;
myRatingBar.setRating(ratingValue);

and the ratingbar displays 2 full stars. How can I make it display one and a half stars, or two and a half?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T10:10:24+00:00Added an answer on May 25, 2026 at 10:10 am

    try to use

    float ratingValue = 1.5f;
    myRatingBar.setRating(ratingValue); // to set rating value
    myRatingBar.setStepSize(ratingValue);// to show to stars
    

    public void setStepSize (float stepSize)

    Sets the step size (granularity) of this rating bar.
    Parameters

    stepSize The step size of this rating bar. For example, if half-star granularity is wanted, this would be 0.5.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: How to create Custom Ratings bar in Android The inbuilt rating bar
I have already added a style <style name=myRatingBar parent=@android:style/Widget.RatingBar> <item name=android:minHeight>32dp</item> <item name=android:maxHeight>32dp</item> </style>
I seem to have a problem with catching my ratingbar click. The ratings bar
I have Android client app that communicates with server using Socket . On my
I have android device with root and i try to implement some small app.
I have android app . i should pass the data from android to web
Iam building a custom rating bar. With help of kozyr's article i have created
In my activity I have some Rating bars. But the size of this bar
I'm developing a crime themed android game that will have a high maturity rating
In my Android app, I have a few views (Buttons, EditTexts etc.) not visible

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.