Hello,
I am generating a series of buttons using a function like
this:
val buttonSlots = ListBuffer[Option[ImageButton]]()
def createButton() = {
var buttonSlot = slot[ImageButton]
val button = w[ImageButton] <~ wire(buttonSlot) <~ res(R.drawable.crosshair) <~ On.click {Ui {
buttonSlots.toList <~ hide } }
buttonSlots +=
buttonSlot
button
}
Hiding the buttons as a list, as is done in the click
handler, does not work. Would you know why? There is no
exception; just nothing happens. I have tried many
variations, to no avail. Thanks!
--