Idea-help for my character tracker

Hello There!

Im looking for some feedback, the specific help i need is an “assign points”

the user can asing 1-10 per skill ( the right column) from a pool of 15. and i cant think of a good sollution.

One idea was to make the lables clickable and have a floating +/- for it, but dont know how.

Have you tried number picker? Once a number is picked then add the picked number from all the selected number using a loop which will give you the total points

Hi dear,

I actually intended to create a tutorial about this.

I can provide you with this base to understand the concept of a recycler list with components for adding and removing points.


First, I created two variables,

  • one that contains the data of each skill description, maximum value, minimum value, and increment (I’m not sure if you need it).

  • Then, I created a dictionary that holds the skill values based on a character, character1 and 2, which will only contain the values that have been set.


In the screen initialize, we initialize the recycler list.


In onCreate, I made a simple layout with a title, description, two labels that will act as buttons, and a textbox for the value.


In onBind, we set the unique IDs of the buttons (labels) and assign the title, description, and textbox value based on the saved character data.


To add and remove points, I created two almost identical functions that split the two operations.


I added a spinner to select which character you want to modify.

There are also many other small things to explain, but I think they’re understandable even without going into detail.

Done!

Skill.aia (137.7 KB)

As soon as I have a moment, I’ll create a detailed guide.
For any questions, just ask.

Happy Koding!