Example #1
0
 protected int getWidth() {
   return (int) (Style.getDisplayMetrics().widthPixels * DIALOG_SIZE_WIDTH);
 }
Example #2
0
 protected boolean isSmallScreen() {
   return Style.getDisplayMetrics().heightPixels < 500;
 }
Example #3
0
 protected int getHeight() {
   return (int)
       (Style.getDisplayMetrics().heightPixels * (isSmallScreen() ? 1.0f : DIALOG_SIZE_HEIGHT));
 }