Posted By

KolNedra on 07/05/11


Tagged

android


Versions (?)

[android] window size


 / Published in: Java
 

  1. Display display = ((WindowManager) getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();
  2. float h = display.getHeight();
  3. float w = display.getWidth();

Report this snippet  

You need to login to post a comment.