title: how to set full screen layout for all activities
body: <p>i want make to become full screen, and adaptable for all smartphone, this code part that creates a tablelayout scrollable both horizontally and vertically, also i want to view the matrix of edittext centered on the layout. Thanks</p>
  
  <pre><code>public void onCreate(Bundle savedInstanceState) {
  
      super.onCreate(savedInstanceState);
      requestWindowFeature(Window.FEATURE_NO_TITLE);
      getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
      WindowManager.LayoutParams.FLAG_FULLSCREEN);
      setContentView(R.layout.seconda);
  
      HorizontalScrollView HSC = new HorizontalScrollView(this);
      ScrollView VSC = new ScrollView(this);
      VSC.setBackgroundResource(R.drawable.lavagna_psd);
  
      tableLayout = new TableLayout(this);
      tableLayout.setGravity(Gravity.CENTER); 
  
      values = new EditText[3][3];
  
      for (int i = 0; i &lt; 3; i++) {
  
        tableRow = new TableRow(this); 
        tableRow.setGravity(Gravity.CENTER);
  
        for (int j = 0; j &lt; 3  ; j++) {
          values[i][j] = new EditText(this);
          values[i][j].setHint("r: " + (i) + " " + "c: " + (j));
          values[i][j].setPadding(10, 10, 10, 10);
          tableRow.addView(values[i][j]);
        }
  
        tableLayout.addView(tableRow);
      }
  
      VSC.addView(tableLayout);
      HSC.addView(VSC);
      setContentView(HSC);
  
  }
  </code></pre>