0

I want to implement a list like a leaderboard into my project. I saw an example which usw the Android native ListView class but is this the right way? Does any body know a solution?;)

Tobias
  • 4,921
  • 4
  • 31
  • 40

3 Answers3

0

I don't have a solution but since you got no answer yet, I wanted to inform you that I used the native ListView class and it worked like a charm !

Easy to implement and I haven't heard about any other way to do so with Andengine yet (there might be though). This only is a return of experience, hope it helps !

Kevin Gilles
  • 463
  • 1
  • 8
  • 23
0

Here is a tutorial that will demonstrate how to create, add and update ListViews:

http://www.vogella.com/tutorials/AndroidListView/article.html

After practicing the concepts in the tutorial, please keep in mind that every row in a list (a separate view) is recycled - while you do not need to inflate it again, you do need to ensure that you set/selete/update any and all information on it, otherwise you get funky bugs. Hope this helps.

C0D3LIC1OU5
  • 8,600
  • 2
  • 37
  • 47
0

You can use the approach from Google Play Game Services.

Your game activity can extend AndEngine's BaseGameActivity. The leader-board activity can extend a normal ListActivity.

In your game start the leaderboards activity with startActivityForResutl. When the user is done, he just goes back to your game activity.

LordRaydenMK
  • 13,074
  • 5
  • 50
  • 56