This class is compatible with B4A, B4i and B4J. A simple circular progress bar implemented as a custom view. Usage: Add the class to your project and add a custom view with the designer. Set its value with" CircularProgressBar1.Value = 100 The animation is smooth in release mode...
www.b4x.com
I have already made a couple of simple modifications to the class parameters, but now I would need to add the click event ideally both to the inner text (mLbl in the class) and on the circular progressbar itself.
I am sure there is an easy way but I never modified a b4x class to add an event. Any guidance?
thanks
Add a transparent panel above the view, in DesignerCreateView. This will allow you to handle the touch events.
B4X:
Private Sub Pnl_Touch (Action As Int, X As Float, Y As Float)
If SomeCondition Then
If xui.SubExists(mCallBack, mEventName & "_ClickInside", 0) Then '0 = number of parameters - this is needed for B4i
CallSubDelayed(mCallBack, mEventName & "_ClickInside")
End If
End If
End Sub