I have arraylist of powerUps and I want to display as a List view and whichever row user selects get that particular power for specific time. All thing is done except I am not able to display arraylist items on listview in libgdx. I searched a lot but didnt get any idea. I want something like this.
If you want to use native android listview, you should refer this
But changing activity may not be such a good idea in most cases. So List class in scene2d would be a great choice here. You can simply initialize it with array of items and have a selection change listener to perform power-up selection. For more, refer this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With