title: How to customise the screen size in Android Using getWindowManager()
body: <p>I have an isue on screen size. As of now I displayed an image in an window screen. I used below code to get the screen size for all devices. </p>
  
  <p>gridSize will be 3*3 or 4*4</p>
  
  <pre><code>public  void createGameBoard(short gridSize) {
      DisplayMetrics metrics = new DisplayMetrics();
  
      getWindowManager().getDefaultDisplay().getMetrics(metrics);
  
      TableLayout tableLayout;
      tableLayout = (TableLayout) findViewById(R.id.parentLayout1);    
      tableLayout.removeAllViews();
  
      board = GameBoard.createGameBoard(this, 
              bitmap, 
              tableLayout,
              (int) (metrics.widthPixels * metrics.density),
              (int) (metrics.heightPixels * metrics.density),
              gridSize);
  
  }
  </code></pre>
  
  <p>Now I want the above method to be customize. that, I want to some gap at top and bottom of this screen to place some content.  I don't want default window size. I want to change with some values for <code>widthPixels</code> and <code>heightPixels</code> to get a space at the top and bottom of this screen.</p>
  
  <p>Can any one help me out?</p>
  
  <p>Thanks 
  Ram </p>