2011-08-18 56 views

回答

3

看看下面的代码。 布局表格布局; rowColor是你可以为行背景

TableRow tr1=new TableRow(this); 
TextView title=new TextView(this); 
title.setText(tit); 
title.setTextColor(Color.rgb(0,0,0)); 
tr1.addView(title,150,30); 
tr1.setBackgroundColor(rowColor); 
layout.addView(tr1); 
相关问题