I am in the process of creating a golf scorecard app. Every hole's score is an empty textView, and that textView has a setOnClickListener to open the score picker dialog. I want to get the score value from the score picker dialog.
Here is the dialog interface: https://i.stack.imgur.com/VNVc1.png
Each button is corresponding to a score.
I know that each button will need a setOnClickListener, but my knowledge is limited about everything else afterward.
So my question is how to return that score value so I can display it in that specific the textView and add it to the player's total? Any suggestions would be very helpful.
Thank you for your time.
