Android Example [MinimaList] Player Scoreboard


This example is a response to this thread.

You can click the labels to edit Player's name and score.
The results will be showed after click on OK.

Player's name cannot be empty.
Player's score only allow positive numbers.
If all players' score are same then there is no winner.

Note: If more than 1 winners then only show 1 winner (previously set).

Take note on the Label's Tag and Event Name in Layout Designer.

MinimaList internally assign an incremental id to the Map item when it is added which can be use to Find it.
E.g
B4X:
AllPlayers.Find(lbl.Tag).Put("Name", Name)
This means when a user click on a label with Tag = 3 then it finds for item with id = 3 inside AllPlayers and update the Name.
 

Attachments

  • Player.zip
    14.5 KB · Views: 14
Cookies are required to use this site. You must accept them to continue using the site. Learn more…