Thank you so much for the code. But I guess, we still don’t have a method for whenAnyDynamicLabel.Click() also I may be wrong but whenAnyLabel.Click() won’t give you component for a click on Dynamic Label. Please let me know if I’m wrong with a suitable block, if possible.
Also thanks to @Ken and @Vedang for the quick compilation of the give code but while using the extensions following error is generated. If any further help could be provided that would be great although I did my work using Dynamic Button but since this could be a useful feature for future.
Yes! I wanted the label to be clicked. But couldn’t found whenAnyDynamicLabel.Click() Therefore just for the testing the extension, I used the Dynamic Buttons. Also as you said the error would be same in both case. Also try adding a whenAnyDynamicLabel.Click() so that we can test the above extensions on a Dynamic Label.
No need to test since the dynamic label is composed of MakeroidDynamicLabel like MakeroidDynamicButton :) What I’m doing now is creating my own dynamic label and button extension, they will both contain the method you need.
@yusufcihan I know what you going to do, mention your extension (:
That is an awesome extension @yusufcihan Thank you everyone for your time guys. I’m leaving an example blocks below (for future reference) which Dynamically creates Labels and changes size and text when a Button is clicked.
Thank you By the way, I recommend using SetProperty block only when there is no Any Component block for the property. Because it is currently causing a problem on < Android 7 (currently fixed / waiting for next release).