Please have a look at the following image
I am creating these checkboxes dynamically using the following code
scrollView = (ScrollView)findViewById(R.id.scrollView);
internalTableLayout = new TableLayout(this);
for(int i=0;i<20;i++)
{
CheckBox c = new CheckBox(this);
c.setText("Word "+i);
TableRow r = new TableRow(this);
r.addView(c);
internalTableLayout.addView(r);
}
scrollView.addView(internalTableLayout);
However, I need these checkboxes to appear in right hand side. So, you know when it is right hand side, the "text" of the checkbox comes first, then the checkbox comes.
How can I do that?