The following code is working correctly for squares but does not work on the triangle. Why?
Here is my sample code:
public void onClick(View v) {