bright-gpu-74537
08/20/2022, 8:30 PMbulky-exabyte-6537
08/20/2022, 11:54 PMbulky-exabyte-6537
08/21/2022, 12:01 AMthousands-state-46635
08/21/2022, 4:48 AMfuture-iron-61487
08/22/2022, 12:49 AMfuture-iron-61487
08/22/2022, 12:50 AMbright-gpu-74537
08/22/2022, 7:10 AMbright-gpu-74537
08/22/2022, 7:12 AMfuture-iron-61487
08/22/2022, 8:40 AMjavax.swing
future-iron-61487
08/22/2022, 8:41 AMkind-river-61378
08/23/2022, 7:24 AMkind-river-61378
08/23/2022, 7:26 AMkind-river-61378
08/23/2022, 7:28 AMpersistentUpdate = false
and it seemed to workbright-gpu-74537
08/23/2022, 8:06 AMkind-river-61378
08/23/2022, 8:15 AMkind-river-61378
08/23/2022, 8:15 AMkind-river-61378
08/23/2022, 8:18 AMpersistentUpdate = false
, and then at the end of new/create() within the substate, I set persistentUpdate of the parent state (PlayState in my case) to be true, and that sorta fixed it I guess lol?bright-gpu-74537
08/23/2022, 9:00 AMkind-river-61378
08/23/2022, 9:01 AMkind-river-61378
08/23/2022, 9:02 AMbright-gpu-74537
08/23/2022, 9:02 AMbright-gpu-74537
08/23/2022, 1:17 PMbright-gpu-74537
08/23/2022, 1:17 PMbright-gpu-74537
08/23/2022, 1:18 PMfull-branch-26766
08/23/2022, 8:13 PMrefined-cat-44047
08/23/2022, 11:11 PMlistview
, and each item in the list has a button. How do I get an onClick callback for each button, and know which item (maybe item index?) the event came from?
Here is a quick example XML:
xml
<listview width="200" height="200">
<item-renderer width="100%" layoutName="horizontal">
<label id="text" width="100%" verticalAlign="center" />
<button id="action" />
</item-renderer>
<data>
<item text="Item 1" action="Action 1" />
<item text="Item 2" action="Action 2" />
<item text="Item 3" action="Action 3" />
</data>
</listview>
refined-cat-44047
08/24/2022, 2:48 AMbright-gpu-74537
08/24/2022, 5:48 AMbright-gpu-74537
08/24/2022, 5:52 AM