title: Call layout Android from another class
body: <p>I have main Activity:</p>
  
  <pre><code>public class Clip15 extends Activity{}
  </code></pre>
  
  <p>I want call tableLayout from class GenerateView in main class Clip15:</p>
  
  <pre><code>public class GenerateView {
        public void generateInputView(String [] inputHeaderTvs, String [] inputTvs, Context context, LinearLayout inputLinearLayout){
  
                  final TableLayout.LayoutParams tableParams = new TableLayout.LayoutParams(TableLayout.LayoutParams.FILL_PARENT, TableLayout.LayoutParams.FILL_PARENT, 1f);
                  final TableRow.LayoutParams rowParams = new TableRow.LayoutParams(TableRow.LayoutParams.FILL_PARENT, TableRow.LayoutParams.WRAP_CONTENT);
                  rowParams.bottomMargin = 0;
  
                  final TableLayout tableLayout = new TableLayout(context);
                  tableLayout.setLayoutParams(tableParams);
                  inputLinearLayout.addView(tableLayout);
  
                  TableRow rowOutputHeader = new TableRow(context);
                  rowOutputHeader.setLayoutParams(tableParams);
                  TextView outputHeader = new TextView(context);
                  outputHeader.setLayoutParams(rowParams);
                  outputHeader.setTextAppearance(context, R.style.outputHeaderTv);
                  outputHeader.setText("Dane wejściowe");
                  rowOutputHeader.addView(outputHeader);
                  tableLayout.addView(rowOutputHeader);
      }}
  </code></pre>
  
  <p>It's possible?</p>