I am a beginner developer. I would like to build an app, but I am facing a problem.
As the image shows, I have a button. If the user clicks on the top side of this button I would like to change the color of just the top line. Also on the other sides, just the side that the user clicked. If user clicked for example on the top side then the right side, I would like to change the color of both side which is shown by the picture.
Any ideas how to do this? The main problem for me, is I can not detect which area the user clicks.