So i have this idea to create an activity that have only buttons which split the screen as presented in the picture:

I was thinking about creating some functions for each button. those functions will be dependent on the y and x axis of the screen.
Can you guys give me a direction on how to do this in a manner of using the Button and imageButton widgets in my activity.java file?