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.
ProgressBarFunctions::GetProgress
Action to get progress of a progress bar component.
Fields: [ ]=
Optional with Default Value
-
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%".
- [ 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
Action to get rating of a rating bar component.
Note: Work ONLY for android.widget.RatingBar object.
Fields: [ ]=
Optional with Default Value
-
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:
[How To Read This Reference]
ProgressBarFunctions::SetProgress
Action to set progress for a progress bar component according to its value.
Fields: [ ]=
Optional with Default Value
-
ProgressValue
ProgressValue to set.
ProgressValue to set. It can be a number between 0 and 1, or a percentage number like 52%.
- [ 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:
[How To Read This Reference]
ProgressBarFunctions::SetRating
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
-
RatingValue
RatingValue to set.
RatingValue to set. It is a float number which represents the rating (number of stars filled).
Examples:
[How To Read This Reference]