Hi guys,
I've been searching the forum for days now to come with a way to achieve the following: I want 5 buttons to change visibility (via a timer) in a controlled sequence.
I believe the Collection class is the best solution to achieve this. Basic4android - Collections (Core)
Theory:
I have to put 5 buttons in an dynamic array, add a timer sub and a static value for the timer to increase. The ticker_tick adds +1 to the static value. Based on the static.value a button from the array is 'picked' and visibility is changed to TRUE for that button. Next tick all buttons visibility is FALSE again and static.value is increased +1 and next button visibility will be picked and changed to TRUE, etc, etc
Am I on the right track or is there a simpler way to achieve this?
I need an example how to add buttons in a Collection and an example how to pick a button from that array and change the visibility on that but I couldn't find anything to suit my needs :BangHead:
Can you please point me to an example? Or something I can recycle to my needs? :sign0163:
I've been searching the forum for days now to come with a way to achieve the following: I want 5 buttons to change visibility (via a timer) in a controlled sequence.
I believe the Collection class is the best solution to achieve this. Basic4android - Collections (Core)
Theory:
I have to put 5 buttons in an dynamic array, add a timer sub and a static value for the timer to increase. The ticker_tick adds +1 to the static value. Based on the static.value a button from the array is 'picked' and visibility is changed to TRUE for that button. Next tick all buttons visibility is FALSE again and static.value is increased +1 and next button visibility will be picked and changed to TRUE, etc, etc
Am I on the right track or is there a simpler way to achieve this?
I need an example how to add buttons in a Collection and an example how to pick a button from that array and change the visibility on that but I couldn't find anything to suit my needs :BangHead:
Can you please point me to an example? Or something I can recycle to my needs? :sign0163: