Hi,
I fixed the problem by modifying the library ASRatingBar.b4xlib viz:
Sub Class_Globals
Private mEventName As String 'ignore
Private mCallBack As Object 'ignore
' Private mBase As B4XView 'ignore *** remove ***
Public mBase As B4XView 'ignore
Private xui As XUI 'ignore
Private xBackgroundView As B4XView
Private xbmp_image ,xbmp_grey_image As B4XBitmap
Private current_ranking As Int
Private g_MaxRating As Int
End Sub
I created a new library called ASRatingBar_RJG.b4xlib, attached this to this post.
I seems to me that when people make custom views there should be a few rules:
Should have a standard set of properties available from the code:
- Visibility
- Enabled
- Font properties: Size, Style, Color, Color Background, Standard Type faces
- Text padding
- Text alignment
- Border width, color, radius etc
These properties are invariably available in the Designer, but when you want to use them in the code you have to waste hours figuring out how to do it. I spent an hour on the problem related in this post.
What do others think?
Best regards
Rob