I want to set the coordinates of my button equal to the coordinates of the point I touch on mobile. I am using the method getRawX() and getRawY().
button.setY(event.getRawY() - actionBarHeight - notificationBarHeight);
How can I get height of my Action Bar and Notification Bar.