Skip to content

Rating Bar

Category Requires Version
User Interface API 21, Android 5.0 Lollipop 1

Overview

A visible component that lets the user submit a star rating.

Events

Changed

Event invoked when the rating has been changed.

Params
rating Number

Properties

Background Color

Color Default: #9E9E9EFF  ➖ Read Write - Designer Blocks

Change the background color of the star.

Get Number Of Stars

Number ➖ Read - Blocks

Returns the number of stars shown.

Get Rating

Number ➖ Read - Blocks

Gets the current rating (number of stars filled).

Get Step Size

Number ➖ Read - Blocks

Gets the step size (granularity) of this rating bar.

Is Indicator

Boolean Default: False ➖ Write - Designer Blocks

Whether this rating bar should only be an indicator (thus non-changeable by the user).

Set Number Of Stars

Number Default: 5 ➖ Write - Designer Blocks

Sets the number of stars to show.

Set Rating

Number ➖ Write - Blocks

Sets the rating (the number of stars filled).

Set Step Size

Number Default: .5 ➖ Write - Designer Blocks

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

Star Color

Color Default: #F34336FF  ➖ Read Write - Designer Blocks

Change the color of the star.

Visible

Boolean Default: True ➖ Read Write - Designer Blocks

Returns true iff the component is visible.


Last update: November 9, 2022