Press on the image to return to the main documentation page.
RatingBar
Written by Fr\u00e9d\u00e9ric Leneuf-Magaud
List of types:
RatingBar
RatingBar
This is an 'Activity Object', it cannot be declared under Sub Process_Globals.
Events:
Changed(NewRating As Float)
Members:
Background
As
android
.
graphics
.
drawable
.
Drawable
BringToFront
Color
As
Int
[write
only]
DesignerCreateView
(
base
As
PanelWrapper
,
lw
As
LabelWrapper
,
props
As
Map
)
Enabled
As
Boolean
ForceItemWidth
(
ItemWidth
As
Int
)
Height
As
Int
Initialize
(
MaxRating
As
Int
,
HalfAllowed
As
Boolean
,
EventPrefix
As
String
)
Invalidate
Invalidate2
(
arg0
As
android
.
graphics
.
Rect
)
Invalidate3
(
arg0
As
Int
,
arg1
As
Int
,
arg2
As
Int
,
arg3
As
Int
)
IsInitialized
As
Boolean
Left
As
Int
Parent
As
Object
[read
only]
Rating
As
Float
RemoveView
RequestFocus
As
Boolean
SendToBack
SetBackgroundImage
(
arg0
As
android
.
graphics
.
Bitmap
)
SetBitmaps
(
On
As
BitmapWrapper
,
Half
As
BitmapWrapper
,
Off
As
BitmapWrapper
)
SetColorAnimated
(
arg0
As
Int
,
arg1
As
Int
,
arg2
As
Int
)
SetLayout
(
Left
As
Int
,
Top
As
Int
,
Width
As
Int
,
Height
As
Int
)
SetLayoutAnimated
(
arg0
As
Int
,
arg1
As
Int
,
arg2
As
Int
,
arg3
As
Int
,
arg4
As
Int
)
SetVisibleAnimated
(
arg0
As
Int
,
arg1
As
Boolean
)
Spacing
As
Float
Tag
As
Object
Top
As
Int
Visible
As
Boolean
Width
As
Int
Members description:
Background
As
android
.
graphics
.
drawable
.
Drawable
BringToFront
Color
As
Int
[write
only]
DesignerCreateView
(
base
As
PanelWrapper
,
lw
As
LabelWrapper
,
props
As
Map
)
Used internally by the designer.
Enabled
As
Boolean
ForceItemWidth
(
ItemWidth
As
Int
)
Forces the width of each rating item. This changes the total width of the rating bar.
Height
As
Int
Initialize
(
MaxRating
As
Int
,
HalfAllowed
As
Boolean
,
EventPrefix
As
String
)
Initializes the rating bar and loads the default images (stars).
MaxRating: Number of rating items to display.
HalfAllowed: Whether the ratings with a fractional part between 0.5 and 0.9 are displayed with an half-item.
EventPrefix: Prefix of the Changed event.
Invalidate
Invalidate2
(
arg0
As
android
.
graphics
.
Rect
)
Invalidate3
(
arg0
As
Int
,
arg1
As
Int
,
arg2
As
Int
,
arg3
As
Int
)
IsInitialized
As
Boolean
Left
As
Int
Parent
As
Object
[read
only]
Rating
As
Float
Gets or sets the rating. Cannot be lower than 0 or greater than MaxRating.
RemoveView
RequestFocus
As
Boolean
SendToBack
SetBackgroundImage
(
arg0
As
android
.
graphics
.
Bitmap
)
SetBitmaps
(
On
As
BitmapWrapper
,
Half
As
BitmapWrapper
,
Off
As
BitmapWrapper
)
Replaces the default images by the given bitmaps. "Half" is not necessary and can be Null if HalfAllowed is False.
SetColorAnimated
(
arg0
As
Int
,
arg1
As
Int
,
arg2
As
Int
)
SetLayout
(
Left
As
Int
,
Top
As
Int
,
Width
As
Int
,
Height
As
Int
)
SetLayoutAnimated
(
arg0
As
Int
,
arg1
As
Int
,
arg2
As
Int
,
arg3
As
Int
,
arg4
As
Int
)
SetVisibleAnimated
(
arg0
As
Int
,
arg1
As
Boolean
)
Spacing
As
Float
Gets or sets the spacing between the rating items. It's a percentage set by default to 0.15.
Tag
As
Object
Top
As
Int
Visible
As
Boolean
Width
As
Int
Top