ProgressBarFunctions

Last Updated:

Actions for working with Progress Bar object.

For Android progress bar, there are two modes indeterminate and determinate. In indeterminate mode, the progress is ignored and the progress bar shows an infinite animation instead. In this case, the keyword SetProgress will not work and GetProgress will return 0. These 2 keywords only work for progress bar in determinate mode.
Note:Keyword SetRating and GetRating will ONLY work for RatingBar object. RatingBar is a subclass of ProgressBar, so SetProgress and GetProgress can work for it.


[How To Read This Reference]
GetProgress
DRD
Action to get progress of a progress bar component.
GetRating
DRD
Action to get rating of a rating bar component.Note: Work ONLY for android.widget.RatingBar object.
SetProgress
DRD
Action to set progress for a progress bar component according to its value.
SetRating
DRD
Action to set rating for a rating bar component according to its value.Note: Work ONLY for android.widget.RatingBar object.

ProgressBarFunctions::GetProgress
DRD

Action to get progress of a progress bar component.


Fields: [ ]=Optional with Default Value
  1. VariableName
    The variable VariableName will contain the progress of progress bar in percentage.

    The variable VariableName will contain the progress of progress bar in percentage. If the current progress is 52%, this variable will be set to "52%".

  2. [ IsPrimary = ]
    IsPrimary is boolean value (default is true). It indicates which indicator to get.

    IsPrimary is boolean value (default is true). It indicates which indicator to get. Android progress bar has 2 indicators, primary and secondary. If it is True or Yes, the primary indicator's progress will be got; otherwise the secondary's will be got.

Examples:
  • T, WINDOW, ProgressBar, GetProgress, currentPrimaryProgress
    Get the progress of ProgressBar's primary indicator and set it to variable currentPrimaryProgress.


  • T, WINDOW, ProgressBar, GetProgress, currentSecondaryProgress, False
    Get the progress of ProgressBar's secondary indicator and set it to variable currentSecondaryProgress.


[How To Read This Reference]

ProgressBarFunctions::GetRating
DRD

Action to get rating of a rating bar component.
Note: Work ONLY for android.widget.RatingBar object.


Fields: [ ]=Optional with Default Value
  1. VariableName
    The variable VariableName will contain the rating of rating bar.

    The variable VariableName will contain the rating of rating bar. It will contain a float number which represents the rating (number of stars filled). If 5 stars are filled, then this variable will contain 5.0

Examples:
  • T, WINDOW, RatingBar, GetRating, currentRating
    Get the rating of RatingBar and set it to variable currentRating.


[How To Read This Reference]

ProgressBarFunctions::SetProgress
DRD

Action to set progress for a progress bar component according to its value.


Fields: [ ]=Optional with Default Value
  1. ProgressValue
    ProgressValue to set.

    ProgressValue to set. It can be a number between 0 and 1, or a percentage number like 52%.

  2. [ IsPrimary = ]
    IsPrimary is boolean value (default is true). It indicates which indicator to set.

    IsPrimary is boolean value (default is true). It indicates which indicator to set. Android progress bar has 2 indicators, primary and secondary. If it is True or Yes, the primary indicator will be set; otherwise the secondary will be set.

Examples:
  • T, WINDOW, ProgressBar, SetProgress, "0.35"
    The progress of ProgressBar's primary indicator is set to "35%" of its total value.


  • T, WINDOW, ProgressBar, SetProgress, "59%", False
    The progress of ProgressBar's secondary indicator is set to "59%" of its total value.


[How To Read This Reference]

ProgressBarFunctions::SetRating
DRD

Action to set rating for a rating bar component according to its value.
Note: Work ONLY for android.widget.RatingBar object.


Fields: [ ]=Optional with Default Value
  1. RatingValue
    RatingValue to set.

    RatingValue to set. It is a float number which represents the rating (number of stars filled).

Examples:
  • T, WINDOW, RatingBar, SetRating, "3.5"
    The rating of RatingBar is set to 3.5, 3.5 stars will be filled.


[How To Read This Reference]