I\'m creating a tableLayout [given in XML]
adding table Row [created in XML and inflating in Java]
also adding 2 textview to the table Row [created in XML an
LayoutInflater inflater = (LayoutInflater)getApplicationContext().getSystemService (Context.LAYOUT_INFLATER_SERVICE); View view = inflater.inflate(R.layout.your_layout,null); mainlayout.addView(view;
follow the above to inflate view.