Using the Android SDK, there doesn\'t seem to be any way to set the style on a table row. I want to do the equivalent of:
The best solution I've found to accomplish this is to create a "partial" layout representing the table row, with a style defined:
Then inflate it in your code, to use dynamically:
TableRow tr = (TableRow) getLayoutInflater().inflate(R.layout.partial_table_row, null);
While not ideal, it does work for me