Code example for TableLayout

Methods: setPaddingsetGravitysetStretchAllColumns

0
    lp.y = 0;
    lp.width = LayoutParams.FILL_PARENT;
    lp.height = LayoutParams.FILL_PARENT;
    lp.flags = lp.flags | LayoutParams.FLAG_FULLSCREEN | LayoutParams.FLAG_BLUR_BEHIND;
 
    grid = new TableLayout(ctx);
    grid.setStretchAllColumns(true);
    grid.setPadding(0, 0, 0, 0);
    grid.setGravity(Gravity.TOP);
    setContentView(grid, lp);
    getWindow().setBackgroundDrawable(new ColorDrawable(0));
  } 
   
  public JumpDialog inRowsOf(int n) {
    cols = n;
    return this;
  } 
 
  public JumpDialog hapticFeedback(boolean b) {
	 hapticFeedback = b;
Contextual code suggestions in your IDE  Get Codota for Java