Skip to content

Commit

Permalink
Adding getScreenHeight() method
Browse files Browse the repository at this point in the history
  • Loading branch information
Jocelyn Becker committed Jan 24, 2018
1 parent 74c408d commit 705383a
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,4 +165,9 @@ public boolean onTouchEvent(MotionEvent event) {
public static int getScreenWidth() {
return Resources.getSystem().getDisplayMetrics().widthPixels;
}

// Get the height of the screen
public static int getScreenHeight() {
return Resources.getSystem().getDisplayMetrics().heightPixels;
}
}

0 comments on commit 705383a

Please sign in to comment.